# COPYING RESTRICTIONS APPLY, See COPYRIGHT file
SUBDIRS= include libraries clients servers # contrib
+CLEANDIRS= tests
+INSTALLDIRS= doc
makefiles: FORCE
./config.status
all-common: all-local FORCE
@echo "Making all in `$(PWD)`"
- @for i in $(SUBDIRS); do \
+ @for i in $(SUBDIRS) $(ALLDIRS); do \
echo " Entering subdirectory $$i"; \
( cd $$i; $(MAKE) $(MFLAGS) all ); \
echo " "; \
install-common: install-local FORCE
@echo "Making install in `$(PWD)`"
- @for i in $(SUBDIRS); do \
+ @for i in $(SUBDIRS) $(INSTALLDIRS); do \
echo " Entering subdirectory $$i"; \
( cd $$i; $(MAKE) $(MFLAGS) install ); \
echo " "; \
clean-common: clean-local FORCE
@echo "Making clean in `$(PWD)`"
- @for i in $(SUBDIRS); do \
+ @for i in $(SUBDIRS) $(CLEANDIRS); do \
echo " Entering subdirectory $$i"; \
( cd $$i; $(MAKE) $(MFLAGS) clean ); \
echo " "; \
veryclean-common: veryclean-local FORCE
@echo "Making veryclean in `$(PWD)`"
- @for i in $(SUBDIRS); do \
+ @for i in $(SUBDIRS) $(CLEANDIRS); do \
echo " Entering subdirectory $$i"; \
( cd $$i; $(MAKE) $(MFLAGS) veryclean ); \
echo " "; \
depend-common: depend-local FORCE
@echo "Making depend in `$(PWD)`"
- @for i in $(SUBDIRS); do \
+ @for i in $(SUBDIRS) $(DEPENDDIRS); do \
echo " Entering subdirectory $$i"; \
( cd $$i; $(MAKE) $(MFLAGS) depend ); \
echo " "; \
-e "s|%VERSION%|$${v}|" \
< Version.c > $@)
-install-common: install-local
+install-common: all-common install-local
lint: lint-local FORCE
$(LINT) $(DEFS) $(DEFINES) $(SRCS)
dnl contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
dnl contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
dnl contrib/whois++/Makefile:build/top.mk:contrib/whois++/Makefile.in:build/rules.mk \
-dnl Makefile:build/top.mk:Makefile.in:build/dir.mk, \
dnl [date > stamp-h])
AC_OUTPUT( \
+Makefile:build/top.mk:Makefile.in:build/dir.mk \
+doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
+doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
tests/Makefile:build/top.mk:tests/Makefile.in \
-Makefile:build/top.mk:Makefile.in:build/dir.mk \
,[date > stamp-h])
$(CHMOD) 444 $@
all-common: all-local
-install-common: install-local
+install-common: all-common install-local
clean-common: clean-local
veryclean-common: veryclean-local
depend-common: depend-local
-$(MKDIR) -p $(sysconfdir)
@for i in $(CFFILES); do \
echo "installing $$i in $(sysconfdir)"; \
- $(MV) $(sysconfdir)/$$i $(sysconfdir)/$$i- ; \
+ if test -f $(sysconfdir)$$i; then \
+ $(MV) $(sysconfdir)/$$i $(sysconfdir)/$$i- ; \
+ fi ; \
$(INSTALL) $(INSTALLFLAGS) -m 644 $$i $(sysconfdir) ; \
done