From: danw Date: Fri, 11 Jul 1997 00:32:24 +0000 (+0000) Subject: update makeconfig to use synctree and to link in all the files instead X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/90fc1cfcd02eed7b3d2de90d2bfeae89737870e0 update makeconfig to use synctree and to link in all the files instead of just the Imakefiles. typo in Imakefile --- diff --git a/util/Imakefile b/util/Imakefile index 174d09a6..167c92de 100644 --- a/util/Imakefile +++ b/util/Imakefile @@ -9,7 +9,7 @@ all:: -#ifdef GDSS +#ifdef DO_GDSS do_subdirs(gdss) #endif diff --git a/util/makeconfig b/util/makeconfig index 4a52784d..06607288 100644 --- a/util/makeconfig +++ b/util/makeconfig @@ -19,29 +19,17 @@ # # make -f makeconfig SRCDIR=/u2/lockers/moira DESTDIR=myconfig -SHELL = /bin/sh DESTDIR = . SRCDIR = /mit/moiradev/src -LN = cp -SYMLINK = ln -s +all: + synctree -q -s $(SRCDIR) -d $(DESTDIR) -SUBDIR = backup clients db dbck dcm gdb gen include incremental \ - lib reg_svr regtape server update clients/blanche \ - clients/mailmaint clients/moira clients/mrcheck clients/mrtest \ - clients/passwd clients/userreg clients/addusr clients/mmoira util man + rm -f $(DESTDIR)/Makefile + cp $(SRCDIR)/Makefile $(DESTDIR)/ + chmod o+w $(DESTDIR)/Makefile -all: - rm -f ${DESTDIR}/Makefile - ${LN} ${SRCDIR}/Makefile ${DESTDIR}/Makefile - rm -f ${DESTDIR}/Imakefile - ${SYMLINK} ${SRCDIR}/Imakefile ${DESTDIR}/Imakefile - chmod +w ${DESTDIR}/Makefile - -for i in ${SUBDIR}; do \ - mkdir ${DESTDIR}/$$i; \ - rm -f ${DESTDIR}/$$i/Imakefile; \ - ${SYMLINK} ${SRCDIR}/$$i/Imakefile ${DESTDIR}/$$i/Imakefile; \ - done - for i in imake makedepend imake.includes et; do \ - make ${MFLAGS} -f ${SRCDIR}/util/$$i/Makefile SRCDIR=${SRCDIR} DESTDIR=${DESTDIR} config; \ - done + rm -f $(DESTDIR)/util/imake.includes/config.Imakefile + sed -e "s|/mit/moiradev/src|${SRCDIR}|" \ + ${SRCDIR}/util/imake.includes/config.Imakefile \ + > ${DESTDIR}/util/imake.includes/config.Imakefile