| #!/usr/bin/make -f |
| # -*- makefile -*- |
| |
| # Uncomment this to turn on verbose mode. |
| #export DH_VERBOSE=1 |
| |
| %: |
| dh $@ |
| |
| PACKAGE = $(shell dh_listpackages) |
| TMP = $(CURDIR)/debian/$(PACKAGE) |
| PREFIX = /opt/wasm |
| DESTDIR = $(TMP)$(PREFIX) |
| |
| override_dh_update_autotools_config: |
| |
| override_dh_auto_install: |
| mkdir -p debian/wasm-toolchain/opt/wasm |
| cp -ar src/work/wasm-install/* $(DESTDIR) |
| find $(DESTDIR) -name "*.pyc" -exec rm "{}" \; |
| rm -rf $(DESTDIR)/emscripten/tests |
| cp src/emscripten_config* debian/wasm-toolchain/opt/wasm |
| rm -f debian/wasm-toolchain/opt/wasm/emscripten_config*sanity* |
| perl -pi -e 's/{{WASM_INSTALL}}/\/opt\/wasm/' debian/wasm-toolchain/opt/wasm/emscripten_config* |
| |
| override_dh_strip: |
| # Don't try to strip any library containing wasm object files because |
| # the native tools can't understand them and end up removing the ar |
| # indexes |
| dh_strip -Xopt/wasm/sysroot -Xwasm32.a |