From 3aee91269b83b09a186d214c55873fbbfa15602d Mon Sep 17 00:00:00 2001 From: Robb Matzke Date: Wed, 10 Dec 1997 17:38:41 -0500 Subject: [svn-r138] ./config/conclude.in Added ability to clean other files. The extra files to remove should be listed in a make variable with the same name as the target. For instance, $(MOSTLYCLEAN) is a list of files in addition to the normal files that should be removed when the user types `make mostlyclean'. --- config/conclude.in | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/config/conclude.in b/config/conclude.in index a5b2992..3daa001 100644 --- a/config/conclude.in +++ b/config/conclude.in @@ -53,14 +53,14 @@ uninstall: # remove things like object files but not libraries or executables. # mostlyclean: - $(RM) $(LIB_OBJ) $(PROG_OBJ) + $(RM) $(LIB_OBJ) $(PROG_OBJ) $(MOSTLYCLEAN) # Like `mostlyclean' except it also removes the final targets: things like # libraries and executables. This target doesn't remove any file that # is part of the HDF5 distribution. # clean: mostlyclean - $(RM) $(LIB) $(PROGS) + $(RM) $(LIB) $(PROGS) $(CLEAN) # Like `clean' except it also removes files that were created by running # configure. If you've unpacked the source and built HDF5 without creating @@ -68,7 +68,7 @@ clean: mostlyclean # in the distribution. # distclean: clean - $(RM) .depend TAGS *~ core *.bak *.old *.new + $(RM) .depend TAGS *~ core *.bak *.old *.new $(DISTCLEAN) @if test -f Makefile.in; then \ (set -x; $(RM) Makefile); \ fi @@ -78,7 +78,6 @@ distclean: clean # maintainer-clean: distclean - # Implicit rules .c.a: $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -- cgit v0.12