import kpasman 0.1 sources
This commit is contained in:
parent
16a283b00c
commit
9a3f2b6afc
110 changed files with 27300 additions and 0 deletions
70
po/Makefile.am
Normal file
70
po/Makefile.am
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
####### kdevelop will overwrite this part!!! (begin)##########
|
||||
POFILES =
|
||||
|
||||
|
||||
####### kdevelop will overwrite this part!!! (end)############
|
||||
GMOFILES = $(POFILES:.po=.gmo)
|
||||
|
||||
localedir = $(kde_locale)
|
||||
|
||||
MAINTAINERCLEANFILES = $(GMOFILES)
|
||||
|
||||
GMSGFMT = @GMSGFMT@
|
||||
MSGFMT = @MSGFMT@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
EXTRA_DIST = $(PACKAGE).pot $(POFILES) $(GMOFILES)
|
||||
|
||||
|
||||
all: all-@USE_NLS@
|
||||
install-data-local: install-@USE_NLS@
|
||||
|
||||
SUFFIXES = .po .gmo
|
||||
|
||||
.po.mo:
|
||||
$(MSGFMT) -o $@ $<
|
||||
|
||||
.po.gmo:
|
||||
file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
|
||||
&& rm -f $$file && $(GMSGFMT) -o $$file $<
|
||||
|
||||
all-yes: $(GMOFILES)
|
||||
all-no:
|
||||
|
||||
install-yes: all
|
||||
@catalogs='$(GMOFILES)'; \
|
||||
for cat in $$catalogs; do \
|
||||
destdir=$(localedir); \
|
||||
lang=`echo $$cat | sed 's/\.gmo//'`; \
|
||||
name=$(PACKAGE).mo \
|
||||
dir=$$destdir/$$lang/LC_MESSAGES; \
|
||||
$(mkinstalldirs) $$dir; \
|
||||
$(INSTALL_DATA) $$cat $$dir/$$name; \
|
||||
echo "installing $$cat as $$dir/$$name"; \
|
||||
done
|
||||
|
||||
install-no:
|
||||
|
||||
uninstall-local:
|
||||
@catalogs='$(GMOFILES)'; \
|
||||
for cat in $$catalogs; do \
|
||||
destdir=$(localedir); \
|
||||
lang=`echo $$cat | sed 's/\.gmo//'`; \
|
||||
name=$(PACKAGE).mo; \
|
||||
dir=$$destdir/$$lang/LC_MESSAGES; \
|
||||
rm -f $$cat $$dir/$$name; \
|
||||
echo "removing $$dir/$$name" ; \
|
||||
done
|
||||
|
||||
merge:
|
||||
@catalogs='$(POFILES)'; \
|
||||
for cat in $$catalogs; do \
|
||||
name=$(PACKAGE).pot ; \
|
||||
echo $$cat $$name; \
|
||||
msgmerge $$cat $$name > $$cat.new ; \
|
||||
if diff $$cat $$cat.new; then \
|
||||
rm $$cat.new; \
|
||||
else \
|
||||
mv $$cat.new $$cat ; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
Reference in a new issue