forked from ajacoutot/toad
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 701 Bytes
/
Makefile
File metadata and controls
28 lines (21 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
PREFIX?= /usr/local
BINDIR= ${PREFIX}/libexec
MANDIR= ${PREFIX}/man/cat
SHAREDIR= ${PREFIX}/share
EXAMPLEDIR= ${SHAREDIR}/examples/toad
PROG= toadd
MAN= toad.8 toadd.8
INSTALL_DIR= install -d -o root -g wheel -m 755
INSTALL_SCRIPT= install -c -S -o root -g bin -m 555
CPPFLAGS+= -DLIBEXECDIR=\"${BINDIR}\"
LDADD= -lutil
WARNINGS= Yes
CFLAGS+= -Werror
CLEANFILES= hotplug-scripts
afterinstall:
sed -e 's,@PREFIX@,${PREFIX},g' ${.CURDIR}/hotplug-scripts.in > \
${.CURDIR}/hotplug-scripts
${INSTALL_DIR} -d ${DESTDIR}${EXAMPLEDIR}
${INSTALL_SCRIPT} ${.CURDIR}/hotplug-scripts ${DESTDIR}${EXAMPLEDIR}
${INSTALL_SCRIPT} ${.CURDIR}/toad.pl ${DESTDIR}${BINDIR}/toad
.include <bsd.prog.mk>