From 7d9da6df8100ae3789241401aa037d9f9ca38920 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 10 Jun 2009 03:16:46 +0000 Subject: [PATCH] Do a recursive distclean in ncat before nbase. Otherwise, this sequence of commands ./configure make make clean make distclean fails when makefile.dep is remade in the ncat directory: In file included from ncat.h:12, from ncat_main.c:4: ../nbase/nbase.h:128:26: error: nbase_config.h: No such file or directory (Many similar messages follow.) This happened because "make clean" deletes ncat/makefile.dep. Remaking makefile.dep requires preprocessing C files that indirectly include nbase_config.h, which was removed from nbase by distclean. Doing the distclean in ncat before nbase sidesteps the issue. --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index e5e941eed..5fb22e372 100644 --- a/Makefile.in +++ b/Makefile.in @@ -190,7 +190,7 @@ ndiff_dist_clean: ndiff_clean debugclean: rm -f *.gcov *.gcda *.gcno gmon.out -distclean: my_clean my_distclean @LUA_DIST_CLEAN@ @PCAP_DIST_CLEAN@ @PCRE_DIST_CLEAN@ @DNET_DIST_CLEAN@ nbase_dist_clean nsock_dist_clean @ZENMAP_DIST_CLEAN@ @NCAT_DIST_CLEAN@ +distclean: my_clean my_distclean @LUA_DIST_CLEAN@ @PCAP_DIST_CLEAN@ @PCRE_DIST_CLEAN@ @DNET_DIST_CLEAN@ @ZENMAP_DIST_CLEAN@ @NCAT_DIST_CLEAN@ nbase_dist_clean nsock_dist_clean my_distclean: rm -f Makefile Makefile.bak makefile.dep nmap_config.h stamp-h stamp-h.in \