aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2022-01-12 13:05:58 +0100
committerElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2022-01-12 13:05:58 +0100
commitb7b74b6469b271aa2b76ad6650851ed065415720 (patch)
tree037cbe0ba28accf91100bd93e7b7dd8a2fb03918 /Makefile
parent483a260c7a17cc164db31937004b769a0693a9b0 (diff)
switch order of implicit rules for compatibility with older versions of make, re #5
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 8204850..a51f89c 100644
--- a/Makefile
+++ b/Makefile
@@ -85,15 +85,6 @@ optimize-icons: npm
find public/assets/images/icons -type f | xargs -P0 $(NPM_BIN)/svgo -q --config=config/svgo.config.js
# default rules for gettext handling
-%.pot: $(PHP_SOURCES)
- xgettext -o $@ --from-code=UTF-8 $(PHP_SOURCES)
-
-%.po: %.pot
- msgmerge -qU $@ $<
-
-%.mo: %.po
- msgfmt -o $@ $<
-
js-%.pot: $(VUE_SOURCES)
$(NPM_BIN)/gettext-extract --attribute v-translate --output $@ $(VUE_SOURCES)
@@ -104,5 +95,14 @@ js-%.json: js-%.po
$(NPM_BIN)/gettext-compile --output $@ $<
sed -i 's/^{[^{]*//;s/}$$//' $@
+%.pot: $(PHP_SOURCES)
+ xgettext -o $@ --from-code=UTF-8 $(PHP_SOURCES)
+
+%.po: %.pot
+ msgmerge -qU $@ $<
+
+%.mo: %.po
+ msgfmt -o $@ $<
+
# dummy target to force update of "doc" target
force_update: