From a42828ac5ecf3924891fdbc9b9a1d53bb7f1249c Mon Sep 17 00:00:00 2001 From: Louie S Date: Thu, 9 May 2024 11:49:38 -0400 Subject: Incorporate installer creation in build system --- nsis/Makefile.am | 5 +++++ nsis/Makefile.in | 5 +++++ nsis/installer.nsi.in | 1 + 3 files changed, 11 insertions(+) (limited to 'nsis') diff --git a/nsis/Makefile.am b/nsis/Makefile.am index b05f308..c16bc2c 100644 --- a/nsis/Makefile.am +++ b/nsis/Makefile.am @@ -1,3 +1,8 @@ EXTRA_DIST = installer.nsi.in CLEANFILES = $(PACKAGE_NAME)-Setup.exe + +.PHONY: installer +$(PACKAGE_NAME)-Setup.exe: installer.nsi + makensis installer.nsi +installer: $(PACKAGE_NAME)-Setup.exe diff --git a/nsis/Makefile.in b/nsis/Makefile.in index cfd6dd8..76207d2 100644 --- a/nsis/Makefile.in +++ b/nsis/Makefile.in @@ -413,6 +413,11 @@ uninstall-am: .PRECIOUS: Makefile +.PHONY: installer +$(PACKAGE_NAME)-Setup.exe: installer.nsi + 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. .NOEXPORT: diff --git a/nsis/installer.nsi.in b/nsis/installer.nsi.in index b53f4cb..f055455 100644 --- a/nsis/installer.nsi.in +++ b/nsis/installer.nsi.in @@ -63,6 +63,7 @@ VIAddVersionKey "FileVersion" "${SETUP_VERSION}" Section "My Application" MyApp SetOutPath $INSTDIR File "..\src\@PACKAGE_NAME@.exe" + ;@DLL_DEPENDENCIES@ ;File "Readme.txt" WriteUninstaller "$INSTDIR\Uninstall.exe" SectionEnd -- cgit