diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-07-02 00:13:02 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-07-02 00:13:02 -0400 |
commit | b23df57cd271ecae89892336eaadcf26b7e9bce8 (patch) | |
tree | fe0ee0b806d2ab4fc9ad7abff2fa41ee5689ec28 /Makefile | |
parent | 1a7c98894c985df6aa6a695865b6c0f6b0a11265 (diff) |
Generate po/*.pot files
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -30,6 +30,7 @@ copy: PHONY $(addprefix copy-, $(packages)) build: PHONY $(addprefix build-, $(packages)) install: PHONY $(addprefix install-,$(packages)) clean: PHONY $(addprefix clean-, $(packages)) + rm -f po/*.pot pot: PHONY $(addprefix pot-, $(filter-out doc,$(packages))) check: @cd test && ./testenv $(TESTENVFLAGS) roundup @@ -42,16 +43,21 @@ check: $(MAKE) -C $* clean %/pot: PHONY % $(MAKE) -C $* pot +%/everything.pot: FORCE % + $(MAKE) -C $* everything.pot .SECONDEXPANSION: $(addprefix copy-, $(packages)): copy-%: PHONY $$(addsuffix /copy, $$($$*)) $(addprefix build-, $(packages)): build-%: PHONY $$(addsuffix /build, $$($$*)) $(addprefix install-,$(packages)): install-%: PHONY $$(addsuffix /install,$$($$*)) $(addprefix clean-, $(packages)): clean-%: PHONY $$(addsuffix /clean, $$($$*)) -$(addprefix pot-, $(packages)): pot-%: PHONY $$(addsuffix /pot, $$($$*)) +$(addprefix pot-, $(packages)): pot-%: PHONY po/%.pot +$(addprefix pot-, $(packages)): pot-%: PHONY po/%.pot +$(foreach p,$(packages),po/$p.pot): po/%.pot: $$(addsuffix /everything.pot,$$($$*)) + cat $^ | msguniq -Fi > '$@' || rm -f '$@' ################################################################################ FORCE: PHONY PHONY: -.PHONY: FORCE PHONY +.PHONY: PHONY |