diff options
Diffstat (limited to 'po/Makefile')
-rw-r--r-- | po/Makefile | 110 |
1 files changed, 0 insertions, 110 deletions
diff --git a/po/Makefile b/po/Makefile deleted file mode 100644 index b33aee7f5..000000000 --- a/po/Makefile +++ /dev/null @@ -1,110 +0,0 @@ -INSTALL= /usr/bin/install -c -INSTALL_PROGRAM= ${INSTALL} -INSTALL_DATA= ${INSTALL} -m 644 -PREFIX=$(DESTDIR)/ -INSTALLNLSDIR=usr/share/locale - -MSGMERGE = msgmerge -v - -NLSPACKAGE = anaconda - -POS = $(wildcard *.po) -FMTCATALOGS = $(patsubst %.po,%.mo,$(POS)) - -GLADEFILES = ../ui/*.glade -DESKTOPFILES = ../liveinst/*.desktop.in -INTLFILES = $(GLADEFILES) $(DESKTOPFILES) - -PYPOTFILES = ../anaconda ../*.py ../iw/*.py ../textw/*.py \ - ../installclasses/*.py ../storage/*.py ../storage/*/*.py - -CPOTFILES = ../loader/*.c - -POTFILES = $(PYPOTFILES) $(CPOTFILES) - -NONPOTFILES = ../lang-table - -all: $(FMTCATALOGS) - -$(NLSPACKAGE).pot: $(POTFILES) $(NONPOTFILES) intltool-po - xgettext --from-code=UTF-8 --default-domain=$(NLSPACKAGE) \ - --keyword=_ --keyword=N_ --keyword=P_:1,2 --lang=python $(PYPOTFILES) - xgettext --from-code=UTF-8 --default-domain=$(NLSPACKAGE) -j \ - --keyword=_ --keyword=N_ --keyword=P_:1,2 --lang=c $(CPOTFILES) tmp/*.h - cat ../lang-table | cut -f1 | while read line; do echo -e "\n#. generated from lang-table\nmsgid \"$$line\"\nmsgstr \"\""; done >> $(NLSPACKAGE).po - if cmp -s $(NLSPACKAGE).po $(NLSPACKAGE).pot; then \ - rm -f $(NLSPACKAGE).po; \ - else \ - mv $(NLSPACKAGE).po $(NLSPACKAGE).pot; \ - fi - -intltool-po: $(INTLFILES) - rm -rf tmp/ - for f in $(GLADEFILES); do \ - intltool-extract --type=gettext/glade -l $$f ;\ - done - for f in $(DESKTOPFILES); do \ - intltool-extract --type=gettext/keys -l $$f ;\ - done - -update-po: Makefile $(NLSPACKAGE).pot refresh-po - -refresh-po: Makefile - for cat in $(POS); do \ - lang=`basename $$cat .po`; \ - if $(MSGMERGE) $$lang.po $(NLSPACKAGE).pot > $$lang.pot ; then \ - mv -f $$lang.pot $$lang.po ; \ - echo "$(MSGMERGE) of $$lang succeeded" ; \ - else \ - echo "$(MSGMERGE) of $$lang failed" ; \ - rm -f $$lang.pot ; \ - fi \ - done - -report: - @for cat in $(POS); do \ - echo -n "$$cat: "; \ - msgfmt -v --statistics -o /dev/null $$cat; \ - done - -clean: - rm -f *mo - -reallyclean: clean - rm -f $(NLSPACKAGE).pot - -distclean: clean - rm -f .depend Makefile - -depend: - -install: $(FMTCARALOGS) all - mkdir -p $(PREFIX)/$(INSTALLNLSDIR) - for n in $(FMTCATALOGS); do \ - l=`basename $$n .mo`; \ - $(INSTALL) -m 755 -d $(PREFIX)/$(INSTALLNLSDIR)/$$l; \ - $(INSTALL) -m 755 -d $(PREFIX)/$(INSTALLNLSDIR)/$$l/LC_MESSAGES; \ - $(INSTALL) -m 644 $$n \ - $(PREFIX)/$(INSTALLNLSDIR)/$$l/LC_MESSAGES/$(NLSPACKAGE).mo; \ - done - -.PHONY: missing - -missing: - mkdir -p missing; \ - for n in $(FMTCATALOGS); do \ - msghack -w 999999 --missing $$n > missing/$$n-; \ - msghack -w 999999 --empty missing/$$n- | grep -v "^#," > missing/$$n; \ - rm missing/$$n-; \ - done - -missing-mixed: - mkdir -p missing-mixed; \ - for n in $(FMTCATALOGS); do \ - msghack -w 999999 --missing $$n > missing-mixed/$$n; \ - done - -%.mo: %.po - msgfmt --check -o $@ $< - -depend: |