From f4656702486896b3b581a6e7bc34e46f53a866d9 Mon Sep 17 00:00:00 2001 From: Michael Hayes Date: Mon, 29 Aug 2011 07:24:44 +0000 Subject: [PATCH] Weed out projects accessing hardware directly --- etc/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/etc/Makefile b/etc/Makefile index 4a190f6..ab0589b 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -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 "\" ../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 - -