You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

34 lines
745 B

  1. XGETTEXT = xgettext --keyword=_ --keyword=N_ --add-comments=TRANS:
  2. POTFILE = tasksel.pot
  3. MOS:=$(addsuffix .mo, $(LANGS))
  4. all: $(POTFILE) $(MOS)
  5. touch build_stamp
  6. $(POTFILE): ../tasksel.pl
  7. $(XGETTEXT) -o $(POTFILE)-update ../tasksel.pl
  8. if test -f $(POTFILE); then \
  9. if diff -I '^"POT-Creation-Date:' -I '^Report-Msgid-Bugs-To:' $(POTFILE) $(POTFILE)-update >/dev/null 2>&1; then \
  10. rm -f $(POTFILE)-update; \
  11. else \
  12. rm -f $(POTFILE); \
  13. mv $(POTFILE)-update $(POTFILE); \
  14. fi; \
  15. else \
  16. mv $(POTFILE)-update $(POTFILE); \
  17. fi
  18. %.mo: %.po
  19. msgfmt -o $@ $<
  20. clean:
  21. -rm -f build_stamp
  22. -rm -f *.mo
  23. update: $(addprefix update-, $(LANGS))
  24. update-%: %.po $(POTFILE)
  25. mv $< $<.bak
  26. msgmerge $<.bak $(POTFILE) > $<