]> andersk Git - moira.git/blame - util/makeconfig
sync'ing files for RCS->CVS migration
[moira.git] / util / makeconfig
CommitLineData
ec1eb6ad 1# $Header$
2#
3# Copyright 1990 by the Massachusetts Institute of Technology.
4#
5# For copying and distribution information,
6# please see the file <mit-copyright.h>.
7#
8# Makefile for creating a Moira configuration
9#
10# This Makefile creates the directories needed to hold Moira
11# object files and executables. It also installs the Imakefiles.
12# This also copies in the Imake and make depend program and Imake macros.
13# By default, the Imakefiles are copied into the configuration
14# and made writeable. If a link is preferred, change LN to "ln".
15#
16# The default distination for the configuration is the current
17# directory; defaults for destination and source directories may be
18# specified, e.g.:
19#
20# make -f makeconfig SRCDIR=/u2/lockers/moira DESTDIR=myconfig
21
d1b2a10e 22SHELL = /bin/sh
ec1eb6ad 23DESTDIR = .
24SRCDIR = /mit/moiradev/src
25
26LN = cp
27SYMLINK = ln -s
28
a09bb239 29SUBDIR = backup clients db dbck dcm gdb gen include incremental \
30 lib reg_svr regtape server update clients/blanche \
31 clients/mailmaint clients/moira clients/mrcheck clients/mrtest \
463f085b 32 clients/passwd clients/userreg clients/addusr clients/mmoira util man
ec1eb6ad 33
34# Empty directories which also need to be built.
d56ff7fb 35MTDIR = lib/profiled server/profiled gdb/profiled
ec1eb6ad 36
37all:
38 rm -f ${DESTDIR}/Makefile
39 ${LN} ${SRCDIR}/Makefile ${DESTDIR}/Makefile
40 rm -f ${DESTDIR}/Imakefile
41 ${SYMLINK} ${SRCDIR}/Imakefile ${DESTDIR}/Imakefile
42 chmod +w ${DESTDIR}/Makefile
43 -for i in ${SUBDIR}; do \
44 mkdir ${DESTDIR}/$$i; \
45 rm -f ${DESTDIR}/$$i/Imakefile; \
46 ${SYMLINK} ${SRCDIR}/$$i/Imakefile ${DESTDIR}/$$i/Imakefile; \
47 done
48 -for i in ${MTDIR}; do mkdir ${DESTDIR}/$$i; done
49 for i in imake makedepend imake.includes et ss; do \
50 make ${MFLAGS} -f ${SRCDIR}/util/$$i/Makefile SRCDIR=${SRCDIR} DESTDIR=${DESTDIR} config; \
51 done
This page took 0.15747 seconds and 5 git commands to generate.