Commit | Line | Data |
---|---|---|
7c612bd2 C |
1 | # INSTALL the following in the order specified |
2 | SUBDIRS=xnslib compiler courierlib morexnslib daemon examples | |
3 | RCSNAME=current | |
4 | DESTDIR= | |
5 | CRLIB=${DESTDIR}/usr/new/lib/xnscourier | |
6 | BINDIR=${DESTDIR}/usr/new | |
7 | ||
8 | # remake everything (many things assume previous subdirectories in the | |
9 | # list have had a "make install" done). | |
10 | install: | |
11 | @echo You should edit morexnslib/ch/clearinghouse.addresses \ | |
12 | before running this | |
13 | -rm -r -f ${DESTDIR}/usr/local/lib/libcourier.a \ | |
14 | ${DESTDIR}/usr/local/lib/libcourier_p.a | |
15 | for Dir in ${SUBDIRS}; do \ | |
16 | (cd $$Dir; \ | |
17 | make ${MFLAGS} DESTDIR=${DESTDIR} CRLIB=${CRLIB} \ | |
18 | BINDIR=${BINDIR} install); done | |
19 | ||
20 | all: | |
21 | for Dir in ${SUBDIRS}; do \ | |
22 | (cd $$Dir; \ | |
23 | make ${MFLAGS} DESTDIR=${DESTDIR} CRLIB=${CRLIB} \ | |
24 | BINDIR=${BINDIR}); done | |
25 | ||
26 | clean: | |
27 | -rm *.BAK *.CKP | |
28 | for Dir in ${SUBDIRS}; do (cd $$Dir; make ${MFLAGS} clean); done | |
29 | ||
30 | rcs: | |
31 | for Dir in ${SUBDIRS}; do \ | |
32 | (cd $$Dir; make RCSNAME=${RCSNAME} ${MFLAGS} rcs); done | |
33 | ||
34 | # you should probably do a "make clean" and "make rcs" before this. | |
35 | # also, edit rcsdescription | |
36 | courier.tar: rcsdescription | |
37 | -chmod -r */RCS morexnslib/*/RCS examples/*/RCS | |
38 | tar cvf courier.tar Makefile README ${SUBDIRS} | |
39 | -chmod +r */RCS morexnslib/*/RCS examples/*/RCS | |
40 | ||
41 | # courierbin.tar is a binary-only distribution of XNS Courier system | |
42 | courierbin.tar: | |
43 | cd examples; make clean | |
44 | tar cvf courierbin.tar README-BINDIST \ | |
45 | /usr/new/xnscourier \ | |
46 | /usr/local/lib/libcourier.a \ | |
47 | /usr/local/lib/libcourier_p.a \ | |
48 | /usr/local/lib/clearinghouse.addresses \ | |
49 | /usr/local/lib/courier \ | |
50 | /usr/include/courier /usr/include/except.h \ | |
51 | /etc/xnscourierd \ | |
52 | doc examples | |
53 | ||
54 | # in addition, /usr/local/{xnsprint,gaptelnet} etc. |