Cleaned up the Makefile to look nicer and not require a lot of hacks

This commit is contained in:
Nate Williams 1993-08-04 21:00:46 +00:00
parent 9e5ebc8c71
commit 501584c759
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240

View File

@ -1,24 +1,15 @@
.if exists(${.CURDIR}/obj) # @(#)Makefile 5.6 (Berkeley) 6/23/90
TARG= ${.CURDIR}/obj/makewhatis
.else
TARG= ${.CURDIR}/makewhatis
.endif
all: ${TARG} NOMAN= noman
CLEANFILES= makewhatis
depend rcsfreeze tags all: beforeinstall: makewhatis
@echo -n install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${.CURDIR}/makewhatis.sh ${DESTDIR}${BINDIR}/makewhatis
cleandir: clean .include <bsd.prog.mk>
cd ${.CURDIR}; rm -rf obj;
clean: makewhatis: makewhatis.sh
@rm -f ${TARG} sed -e 's/%sections%/ "1", "n", "l", "6", "8", "2", "3", "4", "5", "7", "p", "o", NULL/' \
${.CURDIR}/makewhatis.sh > makewhatis
install:
install -c -o bin -g bin -m 555 ${TARG} ${DESTDIR}/usr/bin
${TARG}: ${.CURDIR}/makewhatis.sh
sed -e 's/%sections%/ "1", "n", "l", "6", "8", "2", "3", "4", "5", "7", "p", "o", NULL/' ${.CURDIR}/makewhatis.sh > ${TARG}
.include "../Makefile.inc"