From 99efa84d86f14fb24091ec633e526a06f7704730 Mon Sep 17 00:00:00 2001 From: dmiller Date: Fri, 7 Oct 2016 02:54:04 +0000 Subject: [PATCH] Make sure Nmap.nsi gets regenerated when necessary and safely --- mswin32/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mswin32/Makefile b/mswin32/Makefile index 822f69e9c..c7d2bb5f5 100644 --- a/mswin32/Makefile +++ b/mswin32/Makefile @@ -59,7 +59,8 @@ nmap.rc: nmap.rc.in ../nmap.h -e 's/@@COMMAVERSION@@/$(COMMA_VERSION)/' \ "$<" > "$@" -nsis/Nmap.nsi: nsis/Nmap.nsi.in +nsis/Nmap.nsi: nsis/Nmap.nsi.in ../nmap.h + test -n "$(NPCAP_VERSION)" # Make sure NPcap is present sed -e '1i; Automatically generated from $<.' \ -e 's/@@VIPRODUCTVERSION@@/"$(NMAP_NUM_VERSION)"/' \ -e 's/@@VERSION@@/"$(NMAP_VERSION)"/' \