Skip to content

Commit 87e1438

Browse files
silverwindzeripath
authored andcommitted
avoid useless fomantic rebuilds (#9999)
the `fomantic` target for some reason does sometimes not update the timestamp on the directory, leading to useless rebuild. Manually update the timestamp at the end of the build to avoid this and also added the same to js/css targets.
1 parent fd094ee commit 87e1438

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ js: node-check $(JS_DEST)
481481
$(JS_DEST): $(JS_SOURCES) | node_modules
482482
npx eslint web_src/js webpack.config.js
483483
npx webpack --hide-modules --display-entrypoints=false
484+
@touch $(JS_DEST)
484485

485486
.PHONY: fomantic
486487
fomantic: node-check $(FOMANTIC_DEST_DIR)
@@ -489,6 +490,7 @@ $(FOMANTIC_DEST_DIR): semantic.json web_src/fomantic/theme.config.less | node_mo
489490
cp web_src/fomantic/theme.config.less node_modules/fomantic-ui/src/theme.config
490491
cp web_src/fomantic/_site/globals/* node_modules/fomantic-ui/src/_site/globals/
491492
npx gulp -f node_modules/fomantic-ui/gulpfile.js build
493+
@touch $(FOMANTIC_DEST_DIR)
492494

493495
.PHONY: css
494496
css: node-check $(CSS_DEST)
@@ -498,6 +500,7 @@ $(CSS_DEST): $(CSS_SOURCES) | node_modules
498500
npx lessc web_src/less/index.less public/css/index.css
499501
$(foreach file, $(filter-out web_src/less/themes/_base.less, $(wildcard web_src/less/themes/*)),npx lessc web_src/less/themes/$(notdir $(file)) > public/css/theme-$(notdir $(call strip-suffix,$(file))).css;)
500502
npx postcss --use autoprefixer --use cssnano --no-map --replace public/css/*
503+
@touch $(CSS_DEST)
501504

502505
.PHONY: update-translations
503506
update-translations:

0 commit comments

Comments
 (0)