mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-18 16:25:05 +08:00
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>
This commit is contained in:
parent
09dff8b257
commit
6980985eb9
15
Makefile.in
15
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)
|
||||
|
@ -94,6 +94,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)
|
||||
|
@ -71,6 +71,9 @@ LIBOBJ = snprintf.o vsnprintf.o strlcpy.o \
|
||||
codeview.o \
|
||||
\
|
||||
disasm.o sync.o
|
||||
|
||||
SUBDIRS = stdlib nasmlib output asm disasm x86 common macros
|
||||
XSUBDIRS = test doc nsis
|
||||
#-- End File Lists --#
|
||||
|
||||
NASM_OBJ = $(addprefix $(OBJDIR)/,$(notdir $(NASM))) $(EOLIST)
|
||||
|
@ -87,6 +87,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 --#
|
||||
|
||||
what: .SYMBOLIC
|
||||
@ -221,6 +224,7 @@ clean: .SYMBOLIC
|
||||
rm -f common/*.$(O) common/*.s common/*.i
|
||||
rm -f stdlib/*.$(O) stdlib/*.s stdlib/*.i
|
||||
rm -f nasmlib/*.$(O) nasmlib/*.s nasmlib/*.i
|
||||
rm -f disasm/*.$(O) disasm/*.s disasm/*.i
|
||||
rm -f config.h config.log config.status
|
||||
rm -f nasm$(X) ndisasm$(X) $(NASMLIB)
|
||||
# cd rdoff && $(MAKE) clean
|
||||
|
@ -98,6 +98,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 --#
|
||||
|
||||
what:
|
||||
|
Loading…
Reference in New Issue
Block a user