diff mbox

[3/3] Makefile: Integrate fetching/building of external tests into the Makefile

Message ID 1386807988-20278-3-git-send-email-john.stultz@linaro.org
State Accepted
Headers show

Commit Message

John Stultz Dec. 12, 2013, 12:26 a.m. UTC
Integrates the fetch-external-tests.sh into Makefile.

Also renames the test file to be more explicit

Signed-off-by: John Stultz <john.stultz@linaro.org>
---
 Makefile | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)
diff mbox

Patch

diff --git a/Makefile b/Makefile
index e7c1554..87aed65 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,19 @@ 
 CFLAGS += -g -Wall -O3 -Wl,-no-as-needed
 
 bins = volatile-test volatile-test-signal
-testfile = test
+1M-testfile = 1M-testfile
 
-all: ${bins}
+all: ${bins} 1M-testfile external
+
+external:
+	./fetch-external-tests.sh
+
+1M-testfile:
+	dd if=/dev/zero of=${1M-testfile} bs=1M count=1
 
-testfile:
-	dd if=/dev/zero of=${testfile} bs=1M count=1
 
 clean:
-	rm -f ${bins} ${testfile}
+	rm -f ${bins} ${1M-testfile}
+	rm -rf ebizzy
+	rm -rf jemalloc