Proper handling of dependencies. (Related to #26.)
authorsolar <solar@546481bc-9713-0410-bf18-d3337bbf4a3e>
Sun, 26 Sep 2010 07:11:41 +0000 (07:11 +0000)
committersolar <solar@546481bc-9713-0410-bf18-d3337bbf4a3e>
Sun, 26 Sep 2010 07:11:41 +0000 (07:11 +0000)
git-svn-id: https://srv7.svn-repos.de/dev34/pdclib/trunk@459 546481bc-9713-0410-bf18-d3337bbf4a3e

Makefile

index c13db6b614bbbfb0da00185bfbc2e66675d099d7..09d02ec90e51faa14753a60fcdfd5e985af044da 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -23,9 +23,9 @@ REGFILES := $(filter-out $(patsubst %,functions/_PDCLIB/%_r,$(INTFILES)),$(patsu
 # All library dependency files (.d)
 DEPFILES := $(patsubst %.c,%.d,$(SRCFILES))
 # All test driver dependency files (_t.d)
-TSTDEPFILES := $(patsubst %.c,%_t.d,$(TSTFILES))
+TSTDEPFILES := $(patsubst %,%.d,$(TSTFILES))
 # All regression test driver dependency files (_r.d)
-REGDEPFILES := $(patsubst %.c,%_r.d,$(REGFILES))
+REGDEPFILES := $(patsubst %,%.d,$(REGFILES))
 # All files belonging to the source distribution
 ALLFILES := $(SRCFILES) $(HDRFILES) $(AUXFILES)
 
@@ -75,9 +75,11 @@ regtests: regtestdrivers
 regtestdrivers: $(REGFILES)
        @echo
 
--include $(DEPFILES) $(TSTDEPFILES) $(REGDEPFILES)
+#-include $(DEPFILES) $(TSTDEPFILES) $(REGDEPFILES)
 
 clean:
+       echo $(TSTFILES)
+       echo $(TSTDEPFILES)
        @for file in $(OBJFILES) $(DEPFILES) $(TSTFILES) $(TSTDEPFILES) $(REGFILES) $(REGDEPFILES) pdclib.a pdclib.tgz scanf_testdata_*; do if [ -f $$file ]; then rm $$file; fi; done
 
 srcdist: