[hackers] [libgrapheme] Move up test target and add explicit dependency || Laslo Hunhold
commit 2435843c63e1967f2836e571f1b30eac84e7b01b
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Mon Jun 1 12:46:41 2020 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Mon Jun 1 12:46:41 2020 +0200
Move up test target and add explicit dependency
Signed-off-by: Laslo Hunhold <dev_AT_frign.de>
diff --git a/Makefile b/Makefile
index 22756ff..8b53263 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -17,6 +17,9 @@ MAN7 = man/libgrapheme.7
all: libgrapheme.a libgrapheme.so $(BIN)
+test: src/test
+ ./$<
+
src/test: src/test.o $(REQ:=.o)
src/boundary.o: src/boundary.c config.mk grapheme.h
_AT_@ -37,9 +40,6 @@ libgrapheme.a: $(REQ:=.o)
libgrapheme.so: $(REQ:=.o)
$(CC) -o $_AT_ -shared $?
-test:
- ./src/test
-
src/boundary.c: data/gbp.awk $(GBP) data/emo.awk $(EMO) src/boundary_body.c
printf "/* Automatically generated by gbp.awk and emo.awk */\n" > $_AT_
printf "#include <stdint.h>\n\n" >> $_AT_
Received on Mon Jun 01 2020 - 12:48:12 CEST
This archive was generated by hypermail 2.3.0
: Mon Jun 01 2020 - 12:48:38 CEST