Cleaned up the Makefile to look nicer and not require a lot of hacks
This commit is contained in:
@@ -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"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user