[build/targets.simulator.web.mak] Rule for htmlpack.official.zip

This commit is contained in:
Léa Saviot
2021-03-10 11:48:08 +01:00
parent 30cfa022d1
commit ece6aa5f27

View File

@@ -1,6 +1,13 @@
$(BUILD_DIR)/test.js: EMSCRIPTEN_MODULARIZE = 0
HANDY_TARGETS += htmlpack
HANDY_TARGETS += htmlpack htmlpack.official
HANDY_TARGETS_EXTENSIONS += zip
$(BUILD_DIR)/htmlpack.zip: $(addprefix $(BUILD_DIR)/ion/src/simulator/web/,calculator.html calculator.css) $(BUILD_DIR)/epsilon.js ion/src/simulator/web/calculator.js
htmlpack_targets = .\
.official. \
define rule_htmlpack
$$(BUILD_DIR)/htmlpack$(1)zip: $$(addprefix $$(BUILD_DIR)/ion/src/simulator/web/,calculator.html calculator.css) $$(BUILD_DIR)/epsilon$(1)js ion/src/simulator/web/calculator.js
endef
$(foreach target,$(htmlpack_targets),$(eval $(call rule_htmlpack,$(target))))