diff --git a/Makefile.in b/Makefile.in index 1105e9271..ff61ec506 100644 --- a/Makefile.in +++ b/Makefile.in @@ -112,7 +112,7 @@ nsock_build: $(NSOCKDIR)/src/Makefile nbase_build @echo Compiling libnsock; cd $(NSOCKDIR)/src && $(MAKE) -ncat_build: $(NCATDIR)/Makefile nbase_build nsock_build +ncat_build: $(NCATDIR)/Makefile nbase_build nsock_build $(NCATDIR)/ncat.h cd $(NCATDIR) && $(MAKE) lua_build: $(LIBLUADIR)/Makefile @@ -203,6 +203,10 @@ install-nmap: $(TARGET) $(INSTALL) -c -m 644 nmap-protocols $(DESTDIR)$(nmapdatadir)/ $(INSTALL) -c -m 644 nmap-mac-prefixes $(DESTDIR)$(nmapdatadir)/ +# Update the Ncat version number. +$(NCATDIR)/ncat.h: nmap.h + sed -i -e 's/^#[ \t]*define[ \t]\+NCAT_VERSION[ \t]\+\(".*"\)/#define NCAT_VERSION "$(NMAP_VERSION)"/' $@ + # Update the version number used by Zenmap. $(ZENMAPDIR)/zenmapCore/Version.py $(ZENMAPDIR)/share/zenmap/config/zenmap_version: nmap.h cd $(ZENMAPDIR) && $(PYTHON) install_scripts/utils/version_update.py "$(NMAP_VERSION)"