summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-07-02 00:13:02 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-07-02 00:13:02 -0400
commitb23df57cd271ecae89892336eaadcf26b7e9bce8 (patch)
treefe0ee0b806d2ab4fc9ad7abff2fa41ee5689ec28 /Makefile
parent1a7c98894c985df6aa6a695865b6c0f6b0a11265 (diff)
Generate po/*.pot files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8b811e6..db4735f 100644
--- a/Makefile
+++ b/Makefile
@@ -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