BSD 4_3 development
[unix-history] / usr / contrib / xns / Makefile
CommitLineData
7c612bd2
C
1# INSTALL the following in the order specified
2SUBDIRS=xnslib compiler courierlib morexnslib daemon examples
3RCSNAME=current
4DESTDIR=
5CRLIB=${DESTDIR}/usr/new/lib/xnscourier
6BINDIR=${DESTDIR}/usr/new
7
8# remake everything (many things assume previous subdirectories in the
9# list have had a "make install" done).
10install:
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
20all:
21 for Dir in ${SUBDIRS}; do \
22 (cd $$Dir; \
23 make ${MFLAGS} DESTDIR=${DESTDIR} CRLIB=${CRLIB} \
24 BINDIR=${BINDIR}); done
25
26clean:
27 -rm *.BAK *.CKP
28 for Dir in ${SUBDIRS}; do (cd $$Dir; make ${MFLAGS} clean); done
29
30rcs:
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
36courier.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
42courierbin.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.