forked from forks/qmk_firmware
Add separate makefile for tests
This commit is contained in:
parent
e9a1474bb6
commit
3c6b93a491
|
@ -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
|
13
serial_link_tests.mk
Normal file
13
serial_link_tests.mk
Normal file
|
@ -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)
|
Loading…
Reference in a new issue