From faea7fec129b5f22c4d188bc5558c4388e7f3690 Mon Sep 17 00:00:00 2001 From: solar Date: Sun, 26 Sep 2010 07:11:41 +0000 Subject: [PATCH] Proper handling of dependencies. (Related to #26.) git-svn-id: https://srv7.svn-repos.de/dev34/pdclib/trunk@459 546481bc-9713-0410-bf18-d3337bbf4a3e --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c13db6b..09d02ec 100644 --- 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: -- 2.30.2