summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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