Force nmap.rc to be rebuilt when nmap.h changes

The make rule for nmap.rc depended only on nmap.rc.in, which doesn't
change regularly. Since the rule itself adds version info based on
nmap.h, it makes sense to list this as one of its dependencies.

Fixes #45
This commit is contained in:
dmiller 2015-01-14 04:56:56 +00:00
parent 40ca4cb396
commit 48c29e99b3

View file

@ -53,7 +53,7 @@ winbuild: nmap.rc nsis/Nmap.nsi LICENSE
$(MAKENSIS) nmap-$(NMAP_VERSION)/Nmap.nsi
mv nmap-$(NMAP_VERSION)/NmapInstaller.exe nmap-$(NMAP_VERSION)-setup.exe
nmap.rc: nmap.rc.in
nmap.rc: nmap.rc.in ../nmap.h
sed -e '1i// Automatically generated from $<.' \
-e 's/@@FILEVERSION@@/"$(NMAP_VERSION)\\0"/' \
-e 's/@@COMMAVERSION@@/$(COMMA_VERSION)/' \