Skip to content

Commit 99fec7e

Browse files
author
H. Peter Anvin
committed
Makefile: more cleanup/dist fixes
Even more fixes to the various clean and dist targets, sigh. Signed-off-by: H. Peter Anvin <[email protected]>
1 parent 0553c6f commit 99fec7e

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

Makefile.in

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,10 @@ LIBOBJ = $(LIBOBJ_NW) $(WARNOBJ)
171171
ALLOBJ_NW = $(PROGOBJ) $(LIBOBJ_NW)
172172
ALLOBJ = $(PROGOBJ) $(LIBOBJ)
173173

174-
SUBDIRS = stdlib nasmlib output asm disasm x86 common macros win
175-
XSUBDIRS = test doc nsis
176-
DEPDIRS = . include config x86 $(SUBDIRS)
174+
SUBDIRS = stdlib nasmlib include config output asm disasm x86 \
175+
common macros
176+
XSUBDIRS = test doc nsis win
177+
DEPDIRS = . $(SUBDIRS)
177178
#-- End File Lists --#
178179

179180
all: dirs
@@ -407,13 +408,7 @@ clean:
407408
$(RM_F) nsis/arch.nsh
408409
$(RM_F) perlbreq.si
409410

410-
411-
cleaner: clean
412-
$(RM_F) $(PERLREQ_CL) *.1 nasm.spec
413-
$(MAKE) -C doc clean
414-
$(RM_F) *.dep */*.time
415-
416-
distclean: clean | cleaner
411+
distclean: clean
417412
for d in . $(SUBDIRS) $(XSUBDIRS); do \
418413
$(RM_F) "$$d"/.\# "$$d"/\# "$$d"/*~ "$$d"/*.bak \
419414
"$$d"/*.lst "$$d"/*.bin ; \
@@ -422,11 +417,14 @@ distclean: clean | cleaner
422417
$(RM_F) *.dep
423418
-sh autoconf/clean.sh || sh '$(srcdir)'/autoconf/clean.sh
424419

425-
# This cleans up files generated by autogen.sh
426-
autoconf-clean: | distclean
427-
$(RM_F) configure autoconf/aclocal.m4 autoconf/clean.sh
420+
cleaner:
421+
$(RM_F) $(PERLREQ_CL) *.1 nasm.spec
422+
$(MAKE) -C doc clean
423+
$(MAKE) distclean
424+
$(RM_F) */*.time
428425

429-
spotless: cleaner distclean autoconf-clean
426+
spotless: cleaner
427+
$(RM_F) configure autoconf/aclocal.m4 autoconf/clean.sh
430428

431429
strip:
432430
$(STRIP) --strip-unneeded $(PROGS)
@@ -463,7 +461,7 @@ install_everything: everything install install_doc
463461

464462
dist:
465463
$(MAKE) alldeps
466-
$(MAKE) perlreq manpages spec $(MANPAGES)
464+
$(MAKE) perlreq warnings spec $(MANPAGES)
467465
$(MAKE) distclean
468466
./autogen.sh
469467

Mkfiles/msvc.mak

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,10 @@ LIBOBJ = $(LIBOBJ_NW) $(WARNOBJ)
127127
ALLOBJ_NW = $(PROGOBJ) $(LIBOBJ_NW)
128128
ALLOBJ = $(PROGOBJ) $(LIBOBJ)
129129

130-
SUBDIRS = stdlib nasmlib output asm disasm x86 common macros win
131-
XSUBDIRS = test doc nsis
132-
DEPDIRS = . include config x86 $(SUBDIRS)
130+
SUBDIRS = stdlib nasmlib include config output asm disasm x86 \
131+
common macros
132+
XSUBDIRS = test doc nsis win
133+
DEPDIRS = . $(SUBDIRS)
133134
#-- End File Lists --#
134135

135136
NASMLIB = libnasm.$(A)

Mkfiles/openwcom.mak

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,10 @@ LIBOBJ = $(LIBOBJ_NW) $(WARNOBJ)
115115
ALLOBJ_NW = $(PROGOBJ) $(LIBOBJ_NW)
116116
ALLOBJ = $(PROGOBJ) $(LIBOBJ)
117117

118-
SUBDIRS = stdlib nasmlib output asm disasm x86 common macros win
119-
XSUBDIRS = test doc nsis
120-
DEPDIRS = . include config x86 $(SUBDIRS)
118+
SUBDIRS = stdlib nasmlib include config output asm disasm x86 &
119+
common macros
120+
XSUBDIRS = test doc nsis win
121+
DEPDIRS = . $(SUBDIRS)
121122
#-- End File Lists --#
122123

123124
what: .SYMBOLIC

0 commit comments

Comments
 (0)