Abuse bsd.obj.mk for defining default distribute target.

This commit is contained in:
ru 2002-04-24 13:29:34 +00:00
parent 51d62000c2
commit d579a1cbf2
6 changed files with 10 additions and 47 deletions

View File

@ -121,14 +121,6 @@ afterinstall:
.endif
DISTRIBUTION?= doc
.if !target(distribute)
distribute:
.for dist in ${DISTRIBUTION}
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${dist} SHARED=copies
.endfor
.endif
spell: ${SRCS}
(cd ${.CURDIR}; spell ${SRCS} ) | sort | \
comm -23 - ${.CURDIR}/spell.ok > ${DOC}.spell
@ -155,4 +147,6 @@ ${DFILE}: ${SRCS} _stamp.extraobjs
.endif
.endif
DISTRIBUTION?= doc
.include <bsd.obj.mk>

View File

@ -11,8 +11,6 @@
#
# DESTDIR Change the tree where the info files gets installed. [not set]
#
# DISTRIBUTION Name of distribution. [info]
#
# DVIPS A program which convert a TeX DVI file to PostScript [dvips]
#
# DVIPS2ASCII A program to convert a PostScript file which was prior
@ -65,10 +63,6 @@
#
# +++ targets +++
#
# distribute:
# This is a variant of install, which will
# put the stuff into the right "distribution".
#
# install:
# Install the info files.
#
@ -159,15 +153,6 @@ ${x:S/$/-install/}: ${DESTDIR}${INFODIR}/${INFODIRFILE}
.PHONY: ${INSTALLINFODIRS}
DISTRIBUTION?= base
.if !target(distribute)
distribute:
.for dist in ${DISTRIBUTION}
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${dist} SHARED=copies
.endfor
.endif
.if defined(SRCS)
CLEANFILES+= ${INFO}.texi
${INFO}.texi: ${SRCS}

View File

@ -354,14 +354,6 @@ afterinstall: maninstall
.endif
.endif
DISTRIBUTION?= base
.if !target(distribute)
distribute:
.for dist in ${DISTRIBUTION}
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${dist} SHARED=copies
.endfor
.endif
.if !target(lint)
lint: ${SRCS:M*.c}
${LINT} ${LINTOBJFLAGS} ${CFLAGS:M-[DIU]*} ${.ALLSRC}

View File

@ -117,14 +117,6 @@ realinstall: beforeinstall
all: all-nls
install: realinstall afterinstall
DISTRIBUTION?= base
.if !target(distribute)
distribute:
.for dist in ${DISTRIBUTION}
cd ${.CURDIR}; $(MAKE) install DESTDIR=${DISTDIR}/${dist} SHARED=copies
.endfor
.endif
.if !target(beforeinstall)
beforeinstall:
.endif

View File

@ -151,6 +151,14 @@ checkdpadd:
cleandir: cleanobj
DISTRIBUTION?= base
.if !target(distribute)
distribute:
.for dist in ${DISTRIBUTION}
cd ${.CURDIR}; ${MAKE} install DESTDIR=${DISTDIR}/${dist} SHARED=copies
.endfor
.endif
.include <bsd.subdir.mk>
.endif !target(__<bsd.obj.mk>__)

View File

@ -205,14 +205,6 @@ afterinstall: maninstall
.endif
.endif
DISTRIBUTION?= base
.if !target(distribute)
distribute:
.for dist in ${DISTRIBUTION}
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${dist} SHARED=copies
.endfor
.endif
.if !target(lint)
lint: ${SRCS}
.if defined(PROG)