Weed out projects accessing hardware directly

This commit is contained in:
Michael Hayes
2011-08-29 07:24:44 +00:00
parent 52bae61bf7
commit f465670248
+6 -4
View File
@@ -8,10 +8,14 @@
# using template Makefiles and a python script makemake.py that parses
# the applications looking for #includes.
APPDIRS = $(filter-out ../apps/README, $(wildcard ../apps/*))
TESTDIRS = $(APPDIRS)
APPDIRS = $(filter-out ../apps/README, $(wildcard ../apps/*/ ../ence260-labs/*/))
DOCDIRS = $(addsuffix /doc, $(APPDIRS))
# Don't link against test-scaffold if directly accessing harware
FOO = $(shell grep -l "\<avr/io.h\>" ../ence260-labs/*/*.c)
DUDS = $(foreach filename, $(FOO), $(dir $(filename)))
TESTDIRS = $(filter-out $(DUDS), $(APPDIRS))
TESTMAKEFILES = $(addsuffix /Makefile.test, $(APPDIRS))
APPMAKEFILES = $(addsuffix /Makefile, $(TESTDIRS))
DOCMAKEFILES = $(addsuffix /Makefile, $(DOCDIRS))
@@ -89,5 +93,3 @@ cleandocs: $(CLEANDOCS)
.PHONY: $(CLEANDOCS)
$(CLEANDOCS):
-@$(MAKE) -C $(subst .cleandocs,,$@) clean