File:  [CSRG BSD Unix] / 43BSDTahoe / new / xns / M.k
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:58 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43tahoe
BSD 4.3tahoe


#
# Make Unix XNS/Courier package
# $Header: /var/lib/cvsd/repos/CSRG/43BSDTahoe/new/xns/M.k,v 1.1.1.1 2018/04/24 16:12:58 root Exp $
#
#  You might want to change the following defines:
#	CHDEFAULT	default domain and organization for local system
#	DESTDIR		highest level intended directory (default /)
#	DESTBIN		where the executables go
#	DESTINCLUDE	where the ".h" files go
#	DESTLIB		where the libraries go
#	DESTMAN		where the manual pages go
#	DESTCOURIER	where the Courier services go
#	DESTETC		where the "/etc" related files go

CHDEFAULT = :Evans:Berkeley.EECS
DESTDIR =
DESTBIN = ${DESTDIR}/usr/new
DESTINCLUDE = ${DESTDIR}/usr/include/xnscourier
DESTLIB = ${DESTDIR}/usr/local/lib
DESTMAN = ${DESTDIR}/usr/man/mann
DESTCOURIER = ${DESTDIR}/usr/new/lib/xnscourier
DESTETC = ${DESTDIR/etc

#
# END of user tunable parameters
#--------------------------------------------------------------

#  targets:
#	all		- recompile and link everything
#	install		- copy necessary things to correct destination
#	clean		- undo "make all" to free disk space
#

# set up for recursive makes
MFLAGS = DESTDIR=${DESTDIR}  DESTBIN=${DESTBIN} DESTINCLUDE=${DESTINCLUDE} \
	DESTLIB=${DESTLIB} DESTMAN=${DESTMAN} DESTCOURIER=${DESTCOURIER} \
	DESTETC=${DESTETC} CHDEFAULT="${CHDEFAULT}"

# Programs that live in subdirectories and have their own makefiles
#
# MAKE the following in the order specified
SUBDIRS = xnslib compiler courierlib morexnslib daemon examples
INSTALLDIRS = include bin lib xnscourier man
ALLDIRS = ${SUBDIRS} ${INSTALLDIRS} doc

RCSNAME = current

# remake everything (many things assume previous subdirectories in the
# list have had a "make" done).
all:
	for Dir in ${SUBDIRS}; do \
		(cd $$Dir; make ${MFLAGS} install); done

# install assumes that a previous "make all"  has been done

install:
	for i in ${INSTALLDIRS}; do \
		(cd $$i; make ${MFLAGS} install); done

# clean frees disk space

clean:
	-rm *.BAK *.CKP
	for Dir in ${ALLDIRS}; do (cd $$Dir; make ${MFLAGS} clean); done

rcs:
	for Dir in ${ALLDIRS}; do \
		(cd $$Dir; make RCSNAME="${RCSNAME}" RCSREV="${RCSREV}" \
			${MFLAGS} rcs); done

# you should probably do a "make clean" and "make rcs" before this.
# also, edit rcsdescription
courier.tar: rcsdescription
	-chmod -r */RCS morexnslib/*/RCS examples/*/RCS
	tar cvf courier.tar Makefile README ${ALLDIRS}
	-chmod +r */RCS morexnslib/*/RCS examples/*/RCS

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.