summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/bc
diff options
context:
space:
mode:
authorAlexey Zelkin <phantom@FreeBSD.org>2000-04-24 11:17:53 +0000
committerAlexey Zelkin <phantom@FreeBSD.org>2000-04-24 11:17:53 +0000
commitd7f3a396a2e0a969fc5d92603c17959b98267b56 (patch)
tree4428f3cc890aeb3b94561ebe06eeef0bb8704c41 /gnu/usr.bin/bc
parentc82b30ba7710037f2b8d86de839b0d99bb1647c1 (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/bc')
-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>