date and time created 86/05/23 09:24:46 by kjd
[unix-history] / usr / src / usr.bin / learn / learnlib / Makefile
CommitLineData
becabf0c 1# Makefile 4.2 83/07/08
7b5605a1
SL
2#
3# Make install will build the learn lesson libraries
4# from this directory.
5#
becabf0c 6LESSONS=C editor eqn files macros morefiles
7b5605a1
SL
7FILES= Linfo Xinfo
8DESTDIR=
9
10all:
11
12install: ${LESSONS} ${FILES}
13 -mkdir ${DESTDIR}/usr/lib/learn ${DESTDIR}/usr/lib/learn/log \
14 ${DESTDIR}/usr/lib/learn/bin
15 chmod 755 ${DESTDIR}/usr/lib/learn ${DESTDIR}/usr/lib/learn/log \
16 ${DESTDIR}/usr/lib/learn/bin
17 chown root ${DESTDIR}/usr/lib/learn ${DESTDIR}/usr/lib/learn/log \
18 ${DESTDIR}/usr/lib/learn/bin
19 chgrp staff ${DESTDIR}/usr/lib/learn ${DESTDIR}/usr/lib/learn/log \
20 ${DESTDIR}/usr/lib/learn/bin
21 @for i in ${FILES}; do \
22 echo copy $$i; \
23 install -c -m 644 $$i ${DESTDIR}/usr/lib/learn/$$i; \
24 done
25 @for i in ${LESSONS}; do \
26 echo tar $$i lessons; \
27 tar cf - $$i | (cd ${DESTDIR}/usr/lib/learn; tar xpf -); \
28 done
29
30clean: