diff options
author | jkh <jkh@FreeBSD.org> | 1996-06-24 04:26:21 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-06-24 04:26:21 +0000 |
commit | 8eb37231d4405088a481324c2ec41ac851e8d8f7 (patch) | |
tree | dc80da53186aab7c56424c2574b0cd7928930721 /share/mk/bsd.info.mk | |
parent | 3acbd3cce674dab9a0afdee1f6e50196f4585ffa (diff) | |
download | FreeBSD-src-8eb37231d4405088a481324c2ec41ac851e8d8f7.zip FreeBSD-src-8eb37231d4405088a481324c2ec41ac851e8d8f7.tar.gz |
Bring in my changes for removing the pestilent obj links (unless you
really want them) from /usr/src. This is the final version of the
patches, incorporating the feedback I've received from -current.
Diffstat (limited to 'share/mk/bsd.info.mk')
-rw-r--r-- | share/mk/bsd.info.mk | 39 |
1 files changed, 11 insertions, 28 deletions
diff --git a/share/mk/bsd.info.mk b/share/mk/bsd.info.mk index 9b4f0a3..a6b0324 100644 --- a/share/mk/bsd.info.mk +++ b/share/mk/bsd.info.mk @@ -1,4 +1,4 @@ -# $Id: bsd.info.mk,v 1.16 1996/02/08 18:27:07 mpp Exp $ +# $Id: bsd.info.mk,v 1.17 1996/03/07 23:39:45 wosch Exp $ BINMODE= 444 BINDIR?= /usr/share/info @@ -17,10 +17,10 @@ MAKEINFOFLAGS+= --no-split # simplify some things, e.g., compression .if !defined(NOINFOCOMPRESS) IFILES= ${INFO:S/$/.info.gz/g} -all: ${IFILES} +all: ${IFILES} _SUBDIR .else IFILES= ${INFO:S/$/.info/g} -all: ${IFILES} +all: ${IFILES} _SUBDIR .endif GZIPCMD?= gzip @@ -37,7 +37,7 @@ DISTRIBUTION= info .endif .if !target(distribute) -distribute: +distribute: _SUBDIR cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${DISTRIBUTION} SHARED=copies .endif @@ -46,32 +46,13 @@ ${INFO}.info: ${SRCS} ${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} ${SRCS:S/^/${.CURDIR}\//g} -o ${INFO}.info .endif -depend: +depend: _SUBDIR @echo -n -.if !target(obj) -.if defined(NOOBJ) -obj: -.else -obj: - @cd ${.CURDIR}; rm -f obj; \ - here=`pwd`; dest=/usr/obj`echo $$here | sed 's,^/usr/src,,'`; \ - ${ECHO} "$$here -> $$dest"; ln -s $$dest obj; \ - if test -d /usr/obj -a ! -d $$dest; then \ - mkdir -p $$dest; \ - else \ - true; \ - fi; -.endif -.endif - -clean: +clean: _SUBDIR rm -f ${INFO:S/$/.info*/g} Errs errs mklog ${CLEANFILES} -cleandir: clean - cd ${.CURDIR}; rm -rf obj - -install: +install: _SUBDIR @if [ ! -d "${DESTDIR}${BINDIR}" ]; then \ /bin/rm -f ${DESTDIR}${BINDIR} ; \ mkdir -p ${DESTDIR}${BINDIR} ; \ @@ -84,6 +65,8 @@ install: ${IFILES} ${DESTDIR}${BINDIR} .if !target(maninstall) -maninstall: - +maninstall: _SUBDIR .endif + +.include <bsd.dep.mk> +.include <bsd.obj.mk> |