summaryrefslogtreecommitdiffstats
path: root/usr.bin/vgrind
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1994-09-05 14:07:37 +0000
committerbde <bde@FreeBSD.org>1994-09-05 14:07:37 +0000
commit7421f5c2c7f99d0dcd31c2b46c340b4ecf0d5a26 (patch)
treeac1fcd891ef1422b23068f28dac23cfff553f8d7 /usr.bin/vgrind
parent6e409adfcf3517a133a75838271181e23813de01 (diff)
downloadFreeBSD-src-7421f5c2c7f99d0dcd31c2b46c340b4ecf0d5a26.zip
FreeBSD-src-7421f5c2c7f99d0dcd31c2b46c340b4ecf0d5a26.tar.gz
Build database at build time instead of at install time.
Diffstat (limited to 'usr.bin/vgrind')
-rw-r--r--usr.bin/vgrind/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/vgrind/Makefile b/usr.bin/vgrind/Makefile
index 4e08e01..2c1e76b 100644
--- a/usr.bin/vgrind/Makefile
+++ b/usr.bin/vgrind/Makefile
@@ -5,10 +5,15 @@ SRCS= regexp.c vfontedpr.c
MAN1= vgrind.1
MAN5= vgrindefs.5
BINDIR= /usr/libexec
-CLEANFILES+=vgrindefs.src.db
+EXTRA= vgrindefs.src.db
+CLEANFILES+= ${EXTRA}
-beforeinstall:
+all: ${EXTRA}
+
+${EXTRA}: ${.CURDIR}/vgrindefs.src
cap_mkdb -f vgrindefs.src ${.CURDIR}/vgrindefs.src
+
+beforeinstall:
install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${.CURDIR}/vgrind.sh ${DESTDIR}/usr/bin/vgrind
install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/vgrindefs.src \
OpenPOWER on IntegriCloud