summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-03-18 18:09:16 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-03-18 18:09:16 (GMT)
commit2fd149a5824c22920d2102b97db8478b2f61d5dd (patch)
tree13d887c221264834f88d100e33acafe6cf9b4038 /config
parent96dd634330502cdde53905c9edbef56028323969 (diff)
downloadhdf5-2fd149a5824c22920d2102b97db8478b2f61d5dd.zip
hdf5-2fd149a5824c22920d2102b97db8478b2f61d5dd.tar.gz
hdf5-2fd149a5824c22920d2102b97db8478b2f61d5dd.tar.bz2
[svn-r325] Changes since 19980317
---------------------- ./MANIFEST ./configure.in ./configure ./Makefile.in ./bin/distdep [NEW] ./config/conclude.in ./config/depend.in ./src/.distdep [NEW] ./test/.distdep [NEW] Added some code so non-GNU systems have a list of dependencies between the .c files and the .h files. Hopefully this works and y'all don't have to keep saying `make clean' each time you change a header. On systems with GNU make, GCC, and Perl, the dependency information is generated automatically from rules in config/depend.in as has always been done. But now extra files called `.distdep' (for `distributable dependencies) are left in each directory and these are part of CVS and thus releases. (A `make dep' will create dependencies on demand without doing anything else.) On systems lacking one or more of the tools above, the various `.distdep' files are inserted into the end of the Makefiles. If you do developement on one of these systems you'll have to update the `.distdep' and/or Makefile by hand, or wait until you have access to a GNU system and do a `make dep'.
Diffstat (limited to 'config')
-rw-r--r--config/conclude.in13
-rw-r--r--config/depend.in17
2 files changed, 21 insertions, 9 deletions
diff --git a/config/conclude.in b/config/conclude.in
index 62b48be..84b1058 100644
--- a/config/conclude.in
+++ b/config/conclude.in
@@ -100,4 +100,15 @@ maintainer-clean: distclean
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
-@DEPEND@
+#------------------------------------------------------------------------------
+# The following section of this makefile contains dependencies between the
+# source files and the header files. If GNU make and GCC are being used then
+# the dependencies are in the form of rules that cause the information to
+# be kept updated automatically. Otherwise the dependencies are listed
+# explicitly and come from the `.distdep' files in the various directories.
+# These files are part of the distribution and are generated automatically on
+# GNU/GCC systems.
+#------------------------------------------------------------------------------
+
+@DEPEND1@
+@DEPEND2@
diff --git a/config/depend.in b/config/depend.in
index 46dac4e..dae45ce 100644
--- a/config/depend.in
+++ b/config/depend.in
@@ -1,8 +1,4 @@
-#------------------------------------------------------------- -*- makefile -*-
-# The following section of this makefile comes from the
-# `./config/targets' file which was generated with config.status
-# from `./config/targets.in'.
-#------------------------------------------------------------------------------
+# -*- makefile -*-
# We keep a list of dependencies in `.depend' for each of the source
# files on which it depends. When one of the source files is modified
@@ -18,8 +14,12 @@
# have dependency information rebuilt, and the Makefile is not
# modified.
#
-.PRECIOUS: .depend
-dep depend: .depend
+.PRECIOUS: .depend .distdep
+dep depend: .distdep
+
+.distdep: .depend
+ touch .distdep
+ -perl -p $(ROOT)/bin/distdep .depend >.distdep
.depend: $(LIB_SRC) $(PROG_SRC)
@touch .depend
@@ -30,7 +30,8 @@ dep depend: .depend
sed "/$$obj/,/[^\\]$$/d" <$@ >$@- && mv $@- $@; \
$(CC) -M -MG $(CPPFLAGS) $$dep >>$@; \
fi; \
- done
+ done;
+ -perl -p $(ROOT)/bin/distdep .depend >.distdep
-include .depend