Make sure Nmap.nsi gets regenerated when necessary and safely

This commit is contained in:
dmiller 2016-10-07 02:54:04 +00:00
parent 5806603494
commit 99efa84d86

View file

@ -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)"/' \