summaryrefslogtreecommitdiff
path: root/nsis/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'nsis/Makefile.in')
-rw-r--r--nsis/Makefile.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/nsis/Makefile.in b/nsis/Makefile.in
index 76207d2..9588932 100644
--- a/nsis/Makefile.in
+++ b/nsis/Makefile.in
@@ -222,7 +222,9 @@ top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
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')
all: all-am
.SUFFIXES:
@@ -414,9 +416,11 @@ uninstall-am:
.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
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.