Tweak deps

This commit is contained in:
Michael Hayes
2011-09-10 02:42:17 +00:00
parent 4666d4a1b0
commit 15afdb2766
51 changed files with 55 additions and 53 deletions
+3 -2
View File
@@ -9,11 +9,11 @@
# the applications looking for #includes.
# It also creates the doc directories and the callgraphs, etc.
APPDIRS = $(filter-out ../apps/README, $(wildcard ../apps/*/ ../lab*/*))
APPDIRS = $(filter-out ../apps/README, $(wildcard ../apps/*/ ../lab*/*/))
DOCDIRS = $(addsuffix /doc, $(APPDIRS))
# Don't link against test-scaffold if directly accessing harware
FOO = $(shell grep -l "\<avr/io.h\>" ../lab*/*.c)
FOO = $(shell grep -l "\<avr/io.h\>" ../lab*/*/*.c)
DUDDIRS = $(foreach filename, $(FOO), $(dir $(filename)))
TESTDIRS = $(filter-out $(DUDDIRS), $(APPDIRS))
@@ -29,6 +29,7 @@ CLEANAPPS = $(addsuffix .cleanapps, $(APPDIRS))
CLEANTESTS = $(addsuffix .cleantests, $(TESTDIRS))
CLEANDOCS = $(addsuffix .cleandocs, $(APPDIRS))
all: testmakefiles appmakefiles docmakefiles apps tests docs
clean: cleanapps cleantests cleandocs