Fixed make clean/install for everything but man pages.

This commit is contained in:
Kurt Zeilenga 1998-09-18 18:11:02 +00:00
parent ac1406ad7a
commit 09b44ff101
6 changed files with 15 additions and 10 deletions

View File

@ -3,6 +3,8 @@
# COPYING RESTRICTIONS APPLY, See COPYRIGHT file
SUBDIRS= include libraries clients servers # contrib
CLEANDIRS= tests
INSTALLDIRS= doc
makefiles: FORCE
./config.status

View File

@ -6,7 +6,7 @@
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 " "; \
@ -14,7 +14,7 @@ all-common: all-local FORCE
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 " "; \
@ -22,7 +22,7 @@ install-common: install-local FORCE
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 " "; \
@ -30,7 +30,7 @@ clean-common: clean-local FORCE
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 " "; \
@ -38,7 +38,7 @@ veryclean-common: veryclean-local FORCE
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 " "; \

View File

@ -19,7 +19,7 @@ version.c: $(OBJS)
-e "s|%VERSION%|$${v}|" \
< Version.c > $@)
install-common: install-local
install-common: all-common install-local
lint: lint-local FORCE
$(LINT) $(DEFS) $(DEFINES) $(SRCS)

View File

@ -344,10 +344,12 @@ dnl AC_OUTPUT( \
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 \
@ -375,5 +377,4 @@ servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/
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])

View File

@ -43,7 +43,7 @@ ldapconfig.h: ldapconfig.h.edit Makefile
$(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

View File

@ -34,6 +34,8 @@ install-local: $(LIBRARY) $(CFFILES) FORCE
-$(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