1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-20 14:39:02 +00:00

Make the Ncat version number follow the Nmap version number.

This commit is contained in:
david
2009-03-26 22:51:20 +00:00
parent e29e0530af
commit 541f8dffd8

View File

@@ -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)"