From 486080d2def79f7a2c84b6289b2baf8e292f37e2 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Thu, 28 Dec 2017 22:16:11 +1300 Subject: Move test binaries to separate ignored dir --- test/Makefile | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'test/Makefile') diff --git a/test/Makefile b/test/Makefile index 6f04c4a..44d4969 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,24 +1,25 @@ CFLAGS += -I../ TESTS = \ - test-whitespace-input \ - test-short-keyword \ - test-duplicate-input \ - test-logic-and \ - test-logic-or \ - test-logic-nand \ - test-logic-nor \ - test-logic-xor \ - test-logic-not \ + bin/test-whitespace-input \ + bin/test-short-keyword \ + bin/test-duplicate-input \ + bin/test-logic-and \ + bin/test-logic-or \ + bin/test-logic-nand \ + bin/test-logic-nor \ + bin/test-logic-xor \ + bin/test-logic-not \ all: $(TESTS) -test-%: test-%.c ../gate.o ../parser.o ../logic.o +bin/test-%: test-%.c ../gate.o ../parser.o ../logic.o $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ .PHONY: clean clean: + cd bin rm -f $(TESTS) for i in $(TESTS) ; do \ rm -f $$i.std{out,err}.log ; \ -- cgit v1.1