Commit | Line | Data |
---|---|---|
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 | 6 | LESSONS=C editor eqn files macros morefiles |
7b5605a1 SL |
7 | FILES= Linfo Xinfo |
8 | DESTDIR= | |
9 | ||
10 | all: | |
11 | ||
12 | install: ${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 | ||
30 | clean: |