diff options
author | phantom <phantom@FreeBSD.org> | 2000-01-10 08:55:02 +0000 |
---|---|---|
committer | phantom <phantom@FreeBSD.org> | 2000-01-10 08:55:02 +0000 |
commit | 27ab1d87993fc65ebb00036dc948f7b2e4230e19 (patch) | |
tree | 1329261a0f1cf2d4edf6ed1486c981c9a1124170 /gnu/usr.bin/bc | |
parent | 6a1ee28fe083bbe0ff97e031c0589aa06ca6c914 (diff) | |
download | FreeBSD-src-27ab1d87993fc65ebb00036dc948f7b2e4230e19.zip FreeBSD-src-27ab1d87993fc65ebb00036dc948f7b2e4230e19.tar.gz |
install contrib/bc/Examples as /usr/share/examples/bc
Diffstat (limited to 'gnu/usr.bin/bc')
-rw-r--r-- | gnu/usr.bin/bc/Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gnu/usr.bin/bc/Makefile b/gnu/usr.bin/bc/Makefile index d1aab78..a8c3af4 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> |