]> andersk Git - moira.git/blobdiff - util/makeconfig
add prototypes
[moira.git] / util / makeconfig
index ca9e58e4767616840ea43bb7590aa2ed7401ce4a..6d89e473a33d414bfeabf5af638e1b22e85de7e0 100644 (file)
 DESTDIR        = .
 SRCDIR         = /mit/moiradev/src
 
-LN     = cp
-SYMLINK = ln -s
+SYNCTREE = /usr/athena/etc/synctree
 
-SUBDIR = backup clients db dbck dcm et gdb gen include incremental \
-       lib reg_svr regtape rpc server ss test update clients/blanche \
-       clients/mailmaint clients/moira clients/mrcheck clients/passwd \
-       clients/userreg util man
+all:
+       $(SYNCTREE) -q -s $(SRCDIR) -d $(DESTDIR)
 
-# Empty directories which also need to be built.
-MTDIR  = et/profiled gdb/profiled rpc/profiled server/profiled
+       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 ${MTDIR}; do mkdir ${DESTDIR}/$$i; done
-       for i in imake makedepend imake.includes et ss; 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
This page took 0.039848 seconds and 4 git commands to generate.