summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2017-03-01 01:23:00 -0800
committerH. Peter Anvin <hpa@zytor.com>2017-03-01 01:23:00 -0800
commit6980985eb982d0e99d6013905a4fe1f0ff210b34 (patch)
treec20e775a82dabd1c9138c05d2461d0d97ea7db54 /Makefile.in
parent09dff8b2577ed93fcefaf1eac31e41785bf7a473 (diff)
downloadnasm-6980985eb982d0e99d6013905a4fe1f0ff210b34.tar.gz
make clean: clean up more things that ought to be
Cleaning up hasn't really kept up to date with source code changes. Try make it better for now; this also ought to make it easier to do the corresponding cleaning in the *.mak files. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in15
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile.in b/Makefile.in
index 8b96e128..7cf73922 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -126,6 +126,9 @@ LIBOBJ = stdlib/snprintf.$(O) stdlib/vsnprintf.$(O) stdlib/strlcpy.$(O) \
output/codeview.$(O) \
\
disasm/disasm.$(O) disasm/sync.$(O)
+
+SUBDIRS = stdlib nasmlib output asm disasm x86 common macros
+XSUBDIRS = test doc nsis
#-- End File Lists --#
all: nasm$(X) ndisasm$(X) rdf
@@ -280,7 +283,7 @@ install: nasm$(X) ndisasm$(X)
$(INSTALL_DATA) $(srcdir)/ndisasm.1 $(INSTALLROOT)$(mandir)/man1/ndisasm.1
clean:
- for d in . stdlib nasmlib output asm disasm x86 common macros; do \
+ for d in . $(SUBDIRS); do \
$(RM) -f "$$d"/*.$(O) "$$d"/*.s "$$d"/*.i "$$d"/*.$(A) ; \
done
$(RM) -f nasm$(X) ndisasm$(X)
@@ -291,9 +294,11 @@ clean:
distclean: clean
$(RM) -f config.log config.status config/config.h
- $(RM) -f Makefile *~ *.bak *.lst *.bin
- $(RM) -f output/*~ output/*.bak
- $(RM) -f test/*.lst test/*.bin test/*.$(O) test/*.bin
+ $(RM) -f Makefile
+ for d in . $(SUBDIRS) $(XSUBDIRS); do \
+ $(RM) -f "$$d"/*~ "$$d"/*.bak "$$d"/*.lst "$$d"/*.bin ; \
+ done
+ $(RM) -f test/*.$(O)
$(RM) -rf autom4te*.cache
cd rdoff && $(MAKE) distclean
@@ -302,7 +307,7 @@ cleaner: clean
cd doc && $(MAKE) clean
spotless: distclean cleaner
- $(RM) -f doc/Makefile doc/*~ doc/*.bak
+ $(RM) -f doc/Makefile
strip:
$(STRIP) --strip-unneeded nasm$(X) ndisasm$(X)