Browse Source

Enhancement in test Makefile

Yann Weber 1 year ago
parent
commit
ca33aa2050
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      tests/Makefile

+ 2
- 2
tests/Makefile View File

@@ -8,12 +8,12 @@ DEPS=$(wildcard ../*.o)
8 8
 all: checks
9 9
 
10 10
 checks: $(BINARIES) $(SOURCES)
11
-	for test_bin in $(BINARIES); do echo "Running $${test_bin}.c"; ./$$test_bin && echo "OK" || echo "fail"; done
11
+	for test_bin in $(BINARIES); do echo "Running $${test_bin}.c"; ./$$test_bin && echo "OK" || false; done;
12 12
 
13 13
 ../%.o:
14 14
 	$(MAKE) -C .. `basename "$@"`
15 15
 
16
-%.o: %.c
16
+%.o: %.c $(DEPS)
17 17
 	$(CC) -I .. $(CFLAGS) -c -o $@ $<
18 18
 
19 19
 test_rpn: test_rpn.o ../rpn_lib.o ../rpn_jit_cov.o ../rpn_parse_cov.o ../rpn_if_cov.o ../rpn_if_default_cov.o

Loading…
Cancel
Save