summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-02-14 01:31:01 +0200
committerFred Sundvik <fsundvik@gmail.com>2016-02-14 01:31:01 +0200
commit3c6b93a491ab6ea280c30be26980e2ca91ba5c4c (patch)
tree6179643b5c812e2a4297d62245cb5e091b8e728f
parente9a1474bb6a92024c8d4e3095d6b871833db1cf4 (diff)
Add separate makefile for tests
-rw-r--r--serial_link.mk12
-rw-r--r--serial_link_tests.mk13
2 files changed, 13 insertions, 12 deletions
diff --git a/serial_link.mk b/serial_link.mk
index 8e8de807f5..e69de29bb2 100644
--- a/serial_link.mk
+++ b/serial_link.mk
@@ -1,12 +0,0 @@
-CGREEN_LIB = $(BUILDDIR)/cgreen/build-c/src/libcgreen.a
-
-.phony testserial:
-testserial: $(CGREEN_LIB)
- make -C $(SERIAL_DIR)/tests BUILDDIR=../../$(BUILDDIR)
-
-CGREEN_DIR = "$(CURDIR)/$(SERIAL_DIR)/cgreen/cgreen"
-CGREEN_BUILD_DIR = "$(CURDIR)/$(BUILDDIR)/cgreen"
-export CGREEN_DIR
-export CGREEN_BUILD_DIR
-$(CGREEN_LIB):
- make -C $(SERIAL_DIR)/cgreen \ No newline at end of file
diff --git a/serial_link_tests.mk b/serial_link_tests.mk
new file mode 100644
index 0000000000..36d7c09b3f
--- /dev/null
+++ b/serial_link_tests.mk
@@ -0,0 +1,13 @@
+CGREEN_LIB = $(BUILDDIR)/cgreen/build-c/src/libcgreen.a
+
+CGREEN_DIR = "$(CURDIR)/$(SERIAL_DIR)/cgreen/cgreen"
+CGREEN_BUILD_DIR = "$(CURDIR)/$(BUILDDIR)/cgreen"
+export CGREEN_DIR
+export CGREEN_BUILD_DIR
+$(CGREEN_LIB):
+ make -C $(SERIAL_DIR)/cgreen
+
+.PHONY serialtest:
+serialtest : $(CGREEN_LIB)
+ @echo $(CGREEN_LIB)
+ make -C $(SERIAL_DIR)/tests BUILDDIR=../../$(BUILDDIR) \ No newline at end of file