aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Lihotzki <lukas@lihotzki.de>2020-10-06 09:48:15 +0200
committerLukas Lihotzki <lukas@lihotzki.de>2020-10-06 09:48:15 +0200
commit22f85d3f3d5a043c90486992008347ddd97529d9 (patch)
treefe88a045dfeafa5d73ab75fa210a291ccf46935b
parent6611165bffdfb5b1096a755ca78488bfee8486c1 (diff)
simplify Makefile (olm_legacy.js)
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a96e3ab..4371c63 100644
--- a/Makefile
+++ b/Makefile
@@ -210,12 +210,11 @@ $(JS_ASMJS_TARGET): $(JS_OBJECTS) $(JS_PRE) $(JS_POST) $(JS_EXPORTED_FUNCTIONS)
$(EMCCFLAGS_ASMJS) \
$(foreach f,$(JS_PRE),--pre-js $(f)) \
$(foreach f,$(JS_POST),--post-js $(f)) \
+ $(foreach f,$(JS_PREFIX),--extern-pre-js $(f)) \
+ $(foreach f,$(JS_SUFFIX),--extern-post-js $(f)) \
-s "EXPORTED_FUNCTIONS=@$(JS_EXPORTED_FUNCTIONS)" \
-s "EXTRA_EXPORTED_RUNTIME_METHODS=$(JS_EXTRA_EXPORTED_RUNTIME_METHODS)" \
-o $@ $(JS_OBJECTS)
- mv $@ javascript/olmtmp.js
- cat $(JS_PREFIX) javascript/olmtmp.js $(JS_SUFFIX) > $@
- rm javascript/olmtmp.js
build_tests: $(TEST_BINARIES)