Make "distclean" a REAL synonym for "cleandir" by actually aliasing it

in <bsd.own.mk>, rather than sprinkling it in all the .mk files (and
some Makefiles throughout the tree).
This commit is contained in:
tv 2001-06-01 17:49:32 +00:00
parent b550d9eca1
commit dd70bf30ad
10 changed files with 21 additions and 20 deletions

View File

@ -1,7 +1,7 @@
# $NetBSD: bsd.dep.mk,v 1.30 2000/01/22 19:31:00 mycroft Exp $ # $NetBSD: bsd.dep.mk,v 1.31 2001/06/01 17:49:32 tv Exp $
.PHONY: cleandepend .PHONY: cleandepend
cleandir distclean: cleandepend cleandir: cleandepend
MKDEP?= mkdep MKDEP?= mkdep

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.doc.mk,v 1.49 2001/05/08 03:19:51 sommerfeld Exp $ # $NetBSD: bsd.doc.mk,v 1.50 2001/06/01 17:49:33 tv Exp $
# @(#)bsd.doc.mk 8.1 (Berkeley) 8/14/93 # @(#)bsd.doc.mk 8.1 (Berkeley) 8/14/93
.if !target(__initialized__) .if !target(__initialized__)
@ -14,7 +14,7 @@ __initialized__:
.if ${MKSHARE} != "no" .if ${MKSHARE} != "no"
realinstall: docinstall realinstall: docinstall
.endif .endif
clean cleandir distclean: cleandoc clean cleandir: cleandoc
BIB?= bib BIB?= bib
EQN?= eqn EQN?= eqn

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.hostprog.mk,v 1.9 2001/01/04 23:52:00 garbled Exp $ # $NetBSD: bsd.hostprog.mk,v 1.10 2001/06/01 17:49:33 tv Exp $
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94 # @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
.if !target(__initialized__) .if !target(__initialized__)
@ -13,7 +13,7 @@ __initialized__:
.endif .endif
.PHONY: cleanprog .PHONY: cleanprog
clean cleandir distclean: cleanprog clean cleandir: cleanprog
CFLAGS+= ${COPTS} CFLAGS+= ${COPTS}

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.info.mk,v 1.19 2001/05/08 03:19:52 sommerfeld Exp $ # $NetBSD: bsd.info.mk,v 1.20 2001/06/01 17:49:33 tv Exp $
.if !target(__initialized__) .if !target(__initialized__)
__initialized__: __initialized__:
@ -16,7 +16,7 @@ INFOFLAGS?=
INSTALL_INFO?= install-info INSTALL_INFO?= install-info
.PHONY: infoinstall cleaninfo .PHONY: infoinstall cleaninfo
cleandir distclean: cleaninfo cleandir: cleaninfo
.SUFFIXES: .txi .texi .texinfo .info .SUFFIXES: .txi .texi .texinfo .info

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.kmod.mk,v 1.38 2000/06/06 09:53:30 mycroft Exp $ # $NetBSD: bsd.kmod.mk,v 1.39 2001/06/01 17:49:33 tv Exp $
.if !target(__initialized__) .if !target(__initialized__)
__initialized__: __initialized__:
@ -13,7 +13,7 @@ __initialized__:
.PHONY: cleankmod kmodinstall load unload .PHONY: cleankmod kmodinstall load unload
realinstall: kmodinstall realinstall: kmodinstall
clean cleandir distclean: cleankmod clean cleandir: cleankmod
S?= /sys S?= /sys
KERN= $S/kern KERN= $S/kern

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.lib.mk,v 1.179 2001/04/27 17:04:39 dmcmahill Exp $ # $NetBSD: bsd.lib.mk,v 1.180 2001/06/01 17:49:33 tv Exp $
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 # @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94
.if !target(__initialized__) .if !target(__initialized__)
@ -14,7 +14,7 @@ __initialized__:
.PHONY: checkver cleanlib libinstall .PHONY: checkver cleanlib libinstall
realinstall: checkver libinstall realinstall: checkver libinstall
clean cleandir distclean: cleanlib clean cleandir: cleanlib
.if exists(${SHLIB_VERSION_FILE}) .if exists(${SHLIB_VERSION_FILE})
SHLIB_MAJOR != . ${SHLIB_VERSION_FILE} ; echo $$major SHLIB_MAJOR != . ${SHLIB_VERSION_FILE} ; echo $$major

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.man.mk,v 1.61 2001/05/08 03:19:52 sommerfeld Exp $ # $NetBSD: bsd.man.mk,v 1.62 2001/06/01 17:49:33 tv Exp $
# @(#)bsd.man.mk 8.1 (Berkeley) 6/8/93 # @(#)bsd.man.mk 8.1 (Berkeley) 6/8/93
.if !target(__initialized__) .if !target(__initialized__)
@ -16,7 +16,7 @@ __initialized__:
.if ${MKMAN} != "no" .if ${MKMAN} != "no"
realinstall: ${MANINSTALL} realinstall: ${MANINSTALL}
.endif .endif
cleandir distclean: cleanman cleandir: cleanman
TMACDIR?= ${DESTDIR}/usr/share/tmac TMACDIR?= ${DESTDIR}/usr/share/tmac
HTMLDIR?= ${DESTDIR}/usr/share/man HTMLDIR?= ${DESTDIR}/usr/share/man

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.nls.mk,v 1.27 2001/05/08 03:19:52 sommerfeld Exp $ # $NetBSD: bsd.nls.mk,v 1.28 2001/06/01 17:49:33 tv Exp $
.if !target(__initialized__) .if !target(__initialized__)
__initialized__: __initialized__:
@ -9,7 +9,7 @@ __initialized__:
.endif .endif
.PHONY: cleannls nlsinstall .PHONY: cleannls nlsinstall
cleandir distclean: cleannls cleandir: cleannls
.SUFFIXES: .cat .msg .SUFFIXES: .cat .msg

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.own.mk,v 1.159 2001/05/12 22:38:04 chs Exp $ # $NetBSD: bsd.own.mk,v 1.160 2001/06/01 17:49:33 tv Exp $
.if !defined(_BSD_OWN_MK_) .if !defined(_BSD_OWN_MK_)
_BSD_OWN_MK_=1 _BSD_OWN_MK_=1
@ -159,7 +159,7 @@ MACHINE_GNU_ARCH=${MACHINE_ARCH}
MACHINE_GNU_ARCH=${GNU_ARCH.${MACHINE_ARCH}} MACHINE_GNU_ARCH=${GNU_ARCH.${MACHINE_ARCH}}
.endif .endif
TARGETS+= all clean cleandir depend dependall distclean includes \ TARGETS+= all clean cleandir depend dependall includes \
install lint obj regress tags html installhtml cleanhtml install lint obj regress tags html installhtml cleanhtml
.PHONY: all clean cleandir depend dependall distclean includes \ .PHONY: all clean cleandir depend dependall distclean includes \
install lint obj regress tags beforedepend afterdepend \ install lint obj regress tags beforedepend afterdepend \
@ -184,6 +184,7 @@ realall: .NOTMAIN
depend: .NOTMAIN realdepend subdir-depend depend: .NOTMAIN realdepend subdir-depend
subdir-depend: .NOTMAIN subdir-depend: .NOTMAIN
realdepend: .NOTMAIN realdepend: .NOTMAIN
distclean: .NOTMAIN cleandir
.endif .endif
PRINTOBJDIR= printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -B -s -f- PRINTOBJDIR= printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -B -s -f-

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.prog.mk,v 1.130 2001/05/08 03:19:52 sommerfeld Exp $ # $NetBSD: bsd.prog.mk,v 1.131 2001/06/01 17:49:33 tv Exp $
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94 # @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
.if !target(__initialized__) .if !target(__initialized__)
@ -14,7 +14,7 @@ __initialized__:
.PHONY: cleanprog proginstall scriptsinstall .PHONY: cleanprog proginstall scriptsinstall
realinstall: proginstall scriptsinstall realinstall: proginstall scriptsinstall
clean cleandir distclean: cleanprog clean cleandir: cleanprog
CFLAGS+= ${COPTS} CFLAGS+= ${COPTS}