[nasm:nasm-2.16.xx] Makefile: more cleanup/dist fixes

nasm-bot for H. Peter Anvin hpa at zytor.com
Fri Apr 12 14:51:07 PDT 2024


Commit-ID:  99fec7e7d04d6c0e3cdd958034ccaf92d8f4165d
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=99fec7e7d04d6c0e3cdd958034ccaf92d8f4165d
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Fri, 12 Apr 2024 14:35:56 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Fri, 12 Apr 2024 14:35:56 -0700

Makefile: more cleanup/dist fixes

Even more fixes to the various clean and dist targets, sigh.

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 Makefile.in          | 28 +++++++++++++---------------
 Mkfiles/msvc.mak     |  7 ++++---
 Mkfiles/openwcom.mak |  7 ++++---
 3 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index ff584251..949df0dd 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -171,9 +171,10 @@ LIBOBJ    = $(LIBOBJ_NW) $(WARNOBJ)
 ALLOBJ_NW = $(PROGOBJ) $(LIBOBJ_NW)
 ALLOBJ    = $(PROGOBJ) $(LIBOBJ)
 
-SUBDIRS  = stdlib nasmlib output asm disasm x86 common macros win
-XSUBDIRS = test doc nsis
-DEPDIRS  = . include config x86 $(SUBDIRS)
+SUBDIRS  = stdlib nasmlib include config output asm disasm x86 \
+	   common macros
+XSUBDIRS = test doc nsis win
+DEPDIRS  = . $(SUBDIRS)
 #-- End File Lists --#
 
 all: dirs
@@ -407,13 +408,7 @@ clean:
 	$(RM_F) nsis/arch.nsh
 	$(RM_F) perlbreq.si
 
-
-cleaner: clean
-	$(RM_F) $(PERLREQ_CL) *.1 nasm.spec
-	$(MAKE) -C doc clean
-	$(RM_F) *.dep */*.time
-
-distclean: clean | cleaner
+distclean: clean
 	for d in . $(SUBDIRS) $(XSUBDIRS); do \
 		$(RM_F) "$$d"/.\# "$$d"/\# "$$d"/*~ "$$d"/*.bak \
 			"$$d"/*.lst "$$d"/*.bin ; \
@@ -422,11 +417,14 @@ distclean: clean | cleaner
 	$(RM_F) *.dep
 	-sh autoconf/clean.sh || sh '$(srcdir)'/autoconf/clean.sh
 
-# This cleans up files generated by autogen.sh
-autoconf-clean: | distclean
-	$(RM_F) configure autoconf/aclocal.m4 autoconf/clean.sh
+cleaner:
+	$(RM_F) $(PERLREQ_CL) *.1 nasm.spec
+	$(MAKE) -C doc clean
+	$(MAKE) distclean
+	$(RM_F) */*.time
 
-spotless: cleaner distclean autoconf-clean
+spotless: cleaner
+	$(RM_F) configure autoconf/aclocal.m4 autoconf/clean.sh
 
 strip:
 	$(STRIP) --strip-unneeded $(PROGS)
@@ -463,7 +461,7 @@ install_everything: everything install install_doc
 
 dist:
 	$(MAKE) alldeps
-	$(MAKE) perlreq manpages spec $(MANPAGES)
+	$(MAKE) perlreq warnings spec $(MANPAGES)
 	$(MAKE) distclean
 	./autogen.sh
 
diff --git a/Mkfiles/msvc.mak b/Mkfiles/msvc.mak
index da0bb09c..49678935 100644
--- a/Mkfiles/msvc.mak
+++ b/Mkfiles/msvc.mak
@@ -127,9 +127,10 @@ LIBOBJ    = $(LIBOBJ_NW) $(WARNOBJ)
 ALLOBJ_NW = $(PROGOBJ) $(LIBOBJ_NW)
 ALLOBJ    = $(PROGOBJ) $(LIBOBJ)
 
-SUBDIRS  = stdlib nasmlib output asm disasm x86 common macros win
-XSUBDIRS = test doc nsis
-DEPDIRS  = . include config x86 $(SUBDIRS)
+SUBDIRS  = stdlib nasmlib include config output asm disasm x86 \
+	   common macros
+XSUBDIRS = test doc nsis win
+DEPDIRS  = . $(SUBDIRS)
 #-- End File Lists --#
 
 NASMLIB = libnasm.$(A)
diff --git a/Mkfiles/openwcom.mak b/Mkfiles/openwcom.mak
index b0402be2..91c606be 100644
--- a/Mkfiles/openwcom.mak
+++ b/Mkfiles/openwcom.mak
@@ -115,9 +115,10 @@ LIBOBJ    = $(LIBOBJ_NW) $(WARNOBJ)
 ALLOBJ_NW = $(PROGOBJ) $(LIBOBJ_NW)
 ALLOBJ    = $(PROGOBJ) $(LIBOBJ)
 
-SUBDIRS  = stdlib nasmlib output asm disasm x86 common macros win
-XSUBDIRS = test doc nsis
-DEPDIRS  = . include config x86 $(SUBDIRS)
+SUBDIRS  = stdlib nasmlib include config output asm disasm x86 &
+	   common macros
+XSUBDIRS = test doc nsis win
+DEPDIRS  = . $(SUBDIRS)
 #-- End File Lists --#
 
 what:   .SYMBOLIC


More information about the Nasm-commits mailing list