summaryrefslogtreecommitdiff
path: root/nsis/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'nsis/Makefile.am')
-rw-r--r--nsis/Makefile.am9
1 files changed, 7 insertions, 2 deletions
diff --git a/nsis/Makefile.am b/nsis/Makefile.am
index c16bc2c..3f47a9f 100644
--- a/nsis/Makefile.am
+++ b/nsis/Makefile.am
@@ -1,8 +1,13 @@
EXTRA_DIST = installer.nsi.in
-CLEANFILES = $(PACKAGE_NAME)-Setup.exe
+CLEANFILES = $(PACKAGE_NAME)-Setup.exe deps/*
+
+SEARCHPATH=$$PATH
+DEPENDENCIES = $(shell ./find_dlls.sh -q -s $(SEARCHPATH) '../src/$(PACKAGE_NAME).exe')
.PHONY: installer
+installer: $(PACKAGE_NAME)-Setup.exe
$(PACKAGE_NAME)-Setup.exe: installer.nsi
+ mkdir -p deps
+ for file in $(DEPENDENCIES); do install "$$file" "deps/$$(basename "$$file")"; done
makensis installer.nsi
-installer: $(PACKAGE_NAME)-Setup.exe