dhclient - Silence dhclient by immediately exiting if the interface doesn't exist.
[dragonfly.git] / usr.bin / file / Makefile
blobab6c6ac64fa6759d5a3948788e74df6da44c1739
1 # $DragonFly: src/usr.bin/file/Makefile,v 1.9 2007/08/27 16:50:53 pavalos Exp $
3 CONTRIBDIR= ${.CURDIR}/../../contrib/file
4 .PATH: ${CONTRIBDIR}/src
6 LIBMAGICDIR= ${.CURDIR}/../../lib/libmagic
7 CS= 1
8 FS= 5
9 VER!= grep -w VERSION ${LIBMAGICDIR}/config.h | awk -F\" '{print $$2}'
10 MAGIC= /usr/share/misc/magic
12 PROG= file
13 MAN= file.1 magic.5
15 CFLAGS+= -DHAVE_CONFIG_H -DMAGIC=\"${MAGIC}\"
16 CFLAGS+= -I${LIBMAGICDIR}
18 LDADD+= -lmagic -lz
19 DPADD+= ${LIBMAGIC} ${LIBZ}
21 file.1: ${CONTRIBDIR}/doc/file.man
22 sed -e s@__CSECTION__@${CS}@g \
23 -e s@__FSECTION__@${FS}@g \
24 -e s@__VERSION__@${VER}@g \
25 -e s@__MAGIC__@${MAGIC}@g ${.ALLSRC} > ${.TARGET}
27 magic.5: ${CONTRIBDIR}/doc/magic.man
28 sed -e s@__CSECTION__@${CS}@g \
29 -e s@__FSECTION__@${FS}@g \
30 -e s@__VERSION__@${VER}@g \
31 -e s@__MAGIC__@${MAGIC}@g ${.ALLSRC} > ${.TARGET}
33 CLEANFILES+= file.1 magic.5
34 .include <bsd.prog.mk>