summaryrefslogtreecommitdiffstats
path: root/config/conclude.in
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2001-02-23 21:47:36 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2001-02-23 21:47:36 (GMT)
commit7bc667ee296423d435fd75a45e3d92847606b32f (patch)
tree8cb1d76cf819044c7666a88e13d2a5ad7dbcc5db /config/conclude.in
parente8316ff8c6846659c10df2a09b6a62eda1b45ba2 (diff)
downloadhdf5-7bc667ee296423d435fd75a45e3d92847606b32f.zip
hdf5-7bc667ee296423d435fd75a45e3d92847606b32f.tar.gz
hdf5-7bc667ee296423d435fd75a45e3d92847606b32f.tar.bz2
[svn-r3505] Purpose:
Bux Fig Description: The different "clean" options should recurse through the directories. They weren't and some errand Makefile's would be left after a "distclean". Solution: Made it do just that. Platforms tested: Linux
Diffstat (limited to 'config/conclude.in')
-rw-r--r--config/conclude.in29
1 files changed, 25 insertions, 4 deletions
diff --git a/config/conclude.in b/config/conclude.in
index d868040..622cc65 100644
--- a/config/conclude.in
+++ b/config/conclude.in
@@ -90,8 +90,8 @@ install: $(PUB_LIB) $(PUB_HDR) $(PUB_PROGS) $(libdir) $(includedir) $(bindir)
## Install the documents.
install-doc: $(PUB_DOCS)
@if test -d $(DOCDIR) ; then \
- :; \
- else \
+ :; \
+ else \
mkdir $(DOCDIR) && chmod 755 $(DOCDIR); \
fi
@for d in X $(SUBDIRS); do \
@@ -102,10 +102,10 @@ install-doc: $(PUB_DOCS)
@for f in X $(PUB_DOCS); do \
if test $$f != X; then \
if test -f $$f; then \
- (set -x; $(INSTALL_DATA) $$f $(DOCDIR)/. || exit 1); \
+ (set -x; $(INSTALL_DATA) $$f $(DOCDIR)/. || exit 1); \
else \
(set -x; $(INSTALL_DATA) $(srcdir)/$$f $(DOCDIR)/. || \
- exit 1); \
+ exit 1); \
fi; \
fi; \
done
@@ -139,6 +139,11 @@ uninstall-doc:
## remove things like object files but not libraries or executables.
##
mostlyclean:
+ @for d in X $(SUBDIRS); do \
+ if test $$d != X; then \
+ (set -x; cd $$d; $(MAKE) $@) || exit 1; \
+ fi; \
+ done
-$(RM) $(LIB_OBJ) $(LIB_OBJ:.lo=.o)
-$(RM) $(TEST_OBJ) $(TEST_OBJ:.lo=.o)
-$(RM) $(PROG_OBJ) $(PROG_OBJ:.lo=.o) $(MOSTLYCLEAN)
@@ -148,6 +153,11 @@ mostlyclean:
## is part of the HDF5 distribution.
##
clean: mostlyclean
+ @for d in X $(SUBDIRS); do \
+ if test $$d != X; then \
+ (set -x; cd $$d; $(MAKE) $@) || exit 1; \
+ fi; \
+ done
-$(RM) $(LIB) $(TEST_PROGS) $(PROGS) $(CLEAN)
-$(RM) -r .libs
@@ -158,6 +168,11 @@ clean: mostlyclean
##
distclean: clean
-$(RM) .depend TAGS *~ core *.core *.bak *.old *.new $(DISTCLEAN)
+ @for d in X $(SUBDIRS); do \
+ if test $$d != X; then \
+ (set -x; cd $$d; $(MAKE) $@) || exit 1; \
+ fi; \
+ done
@if test -f $(srcdir)/Makefile.in; then \
(set -x; $(RM) Makefile); \
fi
@@ -167,9 +182,15 @@ distclean: clean
## the makefile, including those generated from autoheader and autoconf.
##
maintainer-clean: distclean
+ @for d in X $(SUBDIRS); do \
+ if test $$d != X; then \
+ (set -x; cd $$d; $(MAKE) $@) || exit 1; \
+ fi; \
+ done
-$(RM) *~ core core.* *.core *.bak *.contrib gmon.out
## Implicit rules
+##
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<