# # Makefile for the release notes, language subdirectory, po4a specific # # No backup PO file export VERSION_CONTROL:=off ORIGINAL = ../en/$(manual).en.sgml POFILE = $(manual).$(currentlang).po # Minimal threshold for translation percentage to keep the resulting file KEEP := 0 IGNOREDINCLUSIONS = dynamicdata shareddata clean distclean: rm -rf $(manual)*.$(currentlang).html for ext in txt ps dvi pdf info\* aux log man tex toc sasp\* tpt; do rm -f $(manual)*.$$ext; done rm -f *~ .*~ core tsa* rm -f $(manual).$(currentlang).sgml $(manual).$(currentlang).sgml: $(ORIGINAL) $(POFILE) \ $(wildcard addenda/*.add) ../dynamic.ent -po4a-translate -k $(KEEP) -f sgml -m $(ORIGINAL) \ -p $(POFILE) -l $(manual).$(currentlang).sgml \ $(patsubst %,-a %,$(wildcard addenda/*.add)) \ -o ignore-inclusion="$(IGNOREDINCLUSIONS)" update-po: $(ORIGINAL) ../dynamic.ent po4a-updatepo -f sgml -m $(ORIGINAL) -p $(POFILE) \ -o ignore-inclusion="$(IGNOREDINCLUSIONS)" stats: ../dynamic.ent -@echo -n "$(POFILE): " 1>&2; \ po4a-gettextize -f sgml -m $(ORIGINAL) \ -o ignore-inclusion="$(IGNOREDINCLUSIONS)" \ | sed -e "s/charset=CHARSET/charset=ascii/" \ | msgmerge -q $(POFILE) - \ | msgfmt -o /dev/null --statistics -;