Some simplification.
This commit is contained in:
parent
44c9fc6f0e
commit
716c598cd5
12
Makefile
12
Makefile
@ -136,15 +136,17 @@ $(foreach p, \
|
|||||||
$(eval $(call concatenate,$(p))) \
|
$(eval $(call concatenate,$(p))) \
|
||||||
)
|
)
|
||||||
|
|
||||||
|
tmp/platform_crx.jst tmp/platform_userscript.jst : tmp/platform.jst
|
||||||
|
$(CP)
|
||||||
|
|
||||||
|
to_interpolate := $(filter-out platform,$(parts)) platform_crx platform_userscript
|
||||||
|
|
||||||
define interpolate
|
define interpolate
|
||||||
tmp/$1.$$(call lang,$1) : tmp/$1.jst $$(call imports,$1) $(template_deps)
|
tmp/$1.$$(call lang,$1) : tmp/$1.jst $$(call imports,$1) $(template_deps)
|
||||||
$(template) $$< $$@
|
$(template) $$< $$@ $$(if $$(findstring platform_,$1),type=$$(subst platform_,,$1))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(foreach p, \
|
$(foreach p, $(to_interpolate), $(eval $(call interpolate,$(p))))
|
||||||
$(filter-out platform,$(parts)), \
|
|
||||||
$(eval $(call interpolate,$(p))) \
|
|
||||||
)
|
|
||||||
|
|
||||||
tmp/platform_%.coffee : tmp/platform.jst $(call imports,platform) $(template_deps)
|
tmp/platform_%.coffee : tmp/platform.jst $(call imports,platform) $(template_deps)
|
||||||
$(template) $< $@ type=$*
|
$(template) $< $@ type=$*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user