Rather than explicitly saying "clean cleandir:" all the time, make clean
a dependency of cleandir (so that "make cleandir" implies "make clean").
This commit is contained in:
parent
b1a3e1140e
commit
d0f9e45413
|
@ -1,7 +1,7 @@
|
|||
# $NetBSD: bsd.dep.mk,v 1.31 2001/06/01 17:49:32 tv Exp $
|
||||
# $NetBSD: bsd.dep.mk,v 1.32 2001/08/14 07:02:13 tv Exp $
|
||||
|
||||
.PHONY: cleandepend
|
||||
cleandir: cleandepend
|
||||
cleandir: cleandepend
|
||||
|
||||
MKDEP?= mkdep
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.doc.mk,v 1.50 2001/06/01 17:49:33 tv Exp $
|
||||
# $NetBSD: bsd.doc.mk,v 1.51 2001/08/14 07:02:13 tv Exp $
|
||||
# @(#)bsd.doc.mk 8.1 (Berkeley) 8/14/93
|
||||
|
||||
.if !target(__initialized__)
|
||||
|
@ -14,7 +14,7 @@ __initialized__:
|
|||
.if ${MKSHARE} != "no"
|
||||
realinstall: docinstall
|
||||
.endif
|
||||
clean cleandir: cleandoc
|
||||
clean: cleandoc
|
||||
|
||||
BIB?= bib
|
||||
EQN?= eqn
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.hostprog.mk,v 1.10 2001/06/01 17:49:33 tv Exp $
|
||||
# $NetBSD: bsd.hostprog.mk,v 1.11 2001/08/14 07:02:13 tv Exp $
|
||||
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
|
||||
|
||||
.if !target(__initialized__)
|
||||
|
@ -13,7 +13,7 @@ __initialized__:
|
|||
.endif
|
||||
|
||||
.PHONY: cleanprog
|
||||
clean cleandir: cleanprog
|
||||
clean: cleanprog
|
||||
|
||||
CFLAGS+= ${COPTS}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.info.mk,v 1.21 2001/08/02 05:42:56 enami Exp $
|
||||
# $NetBSD: bsd.info.mk,v 1.22 2001/08/14 07:02:13 tv Exp $
|
||||
|
||||
.if !target(__initialized__)
|
||||
__initialized__:
|
||||
|
@ -16,7 +16,7 @@ INFOFLAGS?=
|
|||
INSTALL_INFO?= install-info
|
||||
|
||||
.PHONY: infoinstall cleaninfo
|
||||
cleandir: cleaninfo
|
||||
cleandir: cleaninfo
|
||||
|
||||
.SUFFIXES: .txi .texi .texinfo .info
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.kmod.mk,v 1.39 2001/06/01 17:49:33 tv Exp $
|
||||
# $NetBSD: bsd.kmod.mk,v 1.40 2001/08/14 07:02:13 tv Exp $
|
||||
|
||||
.if !target(__initialized__)
|
||||
__initialized__:
|
||||
|
@ -13,7 +13,7 @@ __initialized__:
|
|||
|
||||
.PHONY: cleankmod kmodinstall load unload
|
||||
realinstall: kmodinstall
|
||||
clean cleandir: cleankmod
|
||||
clean: cleankmod
|
||||
|
||||
S?= /sys
|
||||
KERN= $S/kern
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.lib.mk,v 1.182 2001/06/08 11:41:59 mrg Exp $
|
||||
# $NetBSD: bsd.lib.mk,v 1.183 2001/08/14 07:02:13 tv Exp $
|
||||
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94
|
||||
|
||||
.if !target(__initialized__)
|
||||
|
@ -14,7 +14,7 @@ __initialized__:
|
|||
|
||||
.PHONY: checkver cleanlib libinstall
|
||||
realinstall: checkver libinstall
|
||||
clean cleandir: cleanlib
|
||||
clean: cleanlib
|
||||
|
||||
.if exists(${SHLIB_VERSION_FILE})
|
||||
SHLIB_MAJOR != . ${SHLIB_VERSION_FILE} ; echo $$major
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.man.mk,v 1.62 2001/06/01 17:49:33 tv Exp $
|
||||
# $NetBSD: bsd.man.mk,v 1.63 2001/08/14 07:02:13 tv Exp $
|
||||
# @(#)bsd.man.mk 8.1 (Berkeley) 6/8/93
|
||||
|
||||
.if !target(__initialized__)
|
||||
|
@ -16,7 +16,7 @@ __initialized__:
|
|||
.if ${MKMAN} != "no"
|
||||
realinstall: ${MANINSTALL}
|
||||
.endif
|
||||
cleandir: cleanman
|
||||
cleandir: cleanman
|
||||
|
||||
TMACDIR?= ${DESTDIR}/usr/share/tmac
|
||||
HTMLDIR?= ${DESTDIR}/usr/share/man
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.nls.mk,v 1.28 2001/06/01 17:49:33 tv Exp $
|
||||
# $NetBSD: bsd.nls.mk,v 1.29 2001/08/14 07:02:13 tv Exp $
|
||||
|
||||
.if !target(__initialized__)
|
||||
__initialized__:
|
||||
|
@ -9,7 +9,7 @@ __initialized__:
|
|||
.endif
|
||||
|
||||
.PHONY: cleannls nlsinstall
|
||||
cleandir: cleannls
|
||||
cleandir: cleannls
|
||||
|
||||
.SUFFIXES: .cat .msg
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.own.mk,v 1.170 2001/08/14 06:47:24 tv Exp $
|
||||
# $NetBSD: bsd.own.mk,v 1.171 2001/08/14 07:02:13 tv Exp $
|
||||
|
||||
.if !defined(_BSD_OWN_MK_)
|
||||
_BSD_OWN_MK_=1
|
||||
|
@ -206,6 +206,7 @@ depend: .NOTMAIN realdepend subdir-depend
|
|||
subdir-depend: .NOTMAIN
|
||||
realdepend: .NOTMAIN
|
||||
distclean: .NOTMAIN cleandir
|
||||
cleandir: .NOTMAIN clean
|
||||
.endif
|
||||
|
||||
PRINTOBJDIR= printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -B -s -f-
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.prog.mk,v 1.131 2001/06/01 17:49:33 tv Exp $
|
||||
# $NetBSD: bsd.prog.mk,v 1.132 2001/08/14 07:02:13 tv Exp $
|
||||
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
|
||||
|
||||
.if !target(__initialized__)
|
||||
|
@ -14,7 +14,7 @@ __initialized__:
|
|||
|
||||
.PHONY: cleanprog proginstall scriptsinstall
|
||||
realinstall: proginstall scriptsinstall
|
||||
clean cleandir: cleanprog
|
||||
clean: cleanprog
|
||||
|
||||
CFLAGS+= ${COPTS}
|
||||
|
||||
|
|
Loading…
Reference in New Issue