From b7b74b6469b271aa2b76ad6650851ed065415720 Mon Sep 17 00:00:00 2001 From: Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> Date: Wed, 12 Jan 2022 13:05:58 +0100 Subject: [PATCH] switch order of implicit rules for compatibility with older versions of make, re #5 --- Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 82048500b31..a51f89cffc7 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: -- GitLab