Skip to content
Snippets Groups Projects
Commit b7b74b64 authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

switch order of implicit rules for compatibility with older versions of make, re #5

parent 483a260c
No related branches found
No related tags found
No related merge requests found
...@@ -85,15 +85,6 @@ optimize-icons: npm ...@@ -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 find public/assets/images/icons -type f | xargs -P0 $(NPM_BIN)/svgo -q --config=config/svgo.config.js
# default rules for gettext handling # 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) js-%.pot: $(VUE_SOURCES)
$(NPM_BIN)/gettext-extract --attribute v-translate --output $@ $(VUE_SOURCES) $(NPM_BIN)/gettext-extract --attribute v-translate --output $@ $(VUE_SOURCES)
...@@ -104,5 +95,14 @@ js-%.json: js-%.po ...@@ -104,5 +95,14 @@ js-%.json: js-%.po
$(NPM_BIN)/gettext-compile --output $@ $< $(NPM_BIN)/gettext-compile --output $@ $<
sed -i 's/^{[^{]*//;s/}$$//' $@ 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 # dummy target to force update of "doc" target
force_update: force_update:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment