Associate imported files with proper section so only that section is rebuilt. #833
This commit is contained in:
parent
ef00564e9f
commit
d0ede46e65
28
Makefile
28
Makefile
@ -72,20 +72,18 @@ sources_bottom := \
|
|||||||
src/General/Settings.coffee \
|
src/General/Settings.coffee \
|
||||||
src/General/Main.coffee
|
src/General/Main.coffee
|
||||||
|
|
||||||
imports := \
|
imports_top := \
|
||||||
tmp/font-awesome.css \
|
|
||||||
tmp/style.css \
|
|
||||||
src/Archive/archives.json \
|
src/Archive/archives.json \
|
||||||
src/meta/icon48.png \
|
src/css/custom.css
|
||||||
$(wildcard src/Monitoring/Favicon/*/*.png) \
|
imports_Monitoring := \
|
||||||
src/Monitoring/Favicon/dead.gif \
|
src/meta/icon128.png
|
||||||
src/meta/icon128.png \
|
imports_Miscellaneous := \
|
||||||
src/Monitoring/beep.wav \
|
src/css/report.css
|
||||||
src/Miscellaneous/banners.json \
|
imports_bottom := \
|
||||||
$(wildcard src/*/*.html) \
|
$(wildcard src/General/Settings/*.html) \
|
||||||
$(wildcard src/*/*/*.html) \
|
$(filter-out src/css/custom.css src/css/report.css,$(wildcard src/css/*.css)) \
|
||||||
$(wildcard src/css/*.css) \
|
tmp/font-awesome.css \
|
||||||
.tests_enabled
|
tmp/style.css
|
||||||
|
|
||||||
imports_font_awesome := \
|
imports_font_awesome := \
|
||||||
node_modules/font-awesome/css/font-awesome.css \
|
node_modules/font-awesome/css/font-awesome.css \
|
||||||
@ -139,7 +137,7 @@ define rules_part
|
|||||||
tmp/parts/$1.jst : $$(sources_$1) $(cat_deps) | tmp/parts
|
tmp/parts/$1.jst : $$(sources_$1) $(cat_deps) | tmp/parts
|
||||||
$(cat) $$(sources_$1) $$@
|
$(cat) $$(sources_$1) $$@
|
||||||
|
|
||||||
tmp/parts/$1.coffee : tmp/parts/$1.jst $(imports) $(template_deps)
|
tmp/parts/$1.coffee : tmp/parts/$1.jst $$(filter-out %.coffee,$$(wildcard src/$1/*.* src/$1/*/*.* src/$1/*/*/*.*)) $$(imports_$1) .tests_enabled $(template_deps)
|
||||||
$(template) $$< $$@
|
$(template) $$< $$@
|
||||||
|
|
||||||
tmp/parts/$1.js : tmp/parts/$1.coffee $(coffee_deps)
|
tmp/parts/$1.js : tmp/parts/$1.coffee $(coffee_deps)
|
||||||
@ -149,7 +147,7 @@ endef
|
|||||||
|
|
||||||
$(foreach i,$(parts),$(eval $(call rules_part,$(i))))
|
$(foreach i,$(parts),$(eval $(call rules_part,$(i))))
|
||||||
|
|
||||||
tmp/parts/API_%.coffee : tmp/parts/API.jst $(imports) $(template_deps)
|
tmp/parts/API_%.coffee : tmp/parts/API.jst $(template_deps)
|
||||||
$(template) $< $@ type=$*
|
$(template) $< $@ type=$*
|
||||||
|
|
||||||
tmp/parts/API_%.js : tmp/parts/API_%.coffee $(coffee_deps)
|
tmp/parts/API_%.js : tmp/parts/API_%.coffee $(coffee_deps)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user