summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/bc/Makefile
diff options
context:
space:
mode:
authorAlexey Zelkin <phantom@FreeBSD.org>2000-01-10 08:55:02 +0000
committerAlexey Zelkin <phantom@FreeBSD.org>2000-01-10 08:55:02 +0000
commit0b59cdbe842dc0279c3a5ba555e549f530575722 (patch)
tree582947791e21262ee2d28a603dbaf3c9c4855d4b /gnu/usr.bin/bc/Makefile
parentdbc5f306f8faf6ab17055416541bca9e6fe1a34c (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/bc/Makefile')
-rw-r--r--gnu/usr.bin/bc/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/gnu/usr.bin/bc/Makefile b/gnu/usr.bin/bc/Makefile
index d1aab78870da..a8c3af4647ab 100644
--- a/gnu/usr.bin/bc/Makefile
+++ b/gnu/usr.bin/bc/Makefile
@@ -11,4 +11,14 @@ CFLAGS+=-I. -I${.CURDIR} -I${.CURDIR}/../../../contrib/bc/h -DHAVE_CONFIG_H
DPADD= ${LIBREADLINE} ${LIBTERMCAP}
LDADD= -lreadline -ltermcap
+EXAMPLES= ckbook.b pi.b primes.b twins.b
+EXAMPDIR= /usr/share/examples/bc
+
+beforeinstall:
+.for file in ${EXAMPLES}
+ cd ${.CURDIR}/../../../contrib/bc/Examples ; \
+ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${file} \
+ ${DESTDIR}${EXAMPDIR}
+.endfor
+
.include <bsd.prog.mk>