commit 2435843c63e1967f2836e571f1b30eac84e7b01b
Author:     Laslo Hunhold <[email protected]>
AuthorDate: Mon Jun 1 12:46:41 2020 +0200
Commit:     Laslo Hunhold <[email protected]>
CommitDate: Mon Jun 1 12:46:41 2020 +0200

    Move up test target and add explicit dependency
    
    Signed-off-by: Laslo Hunhold <[email protected]>

diff --git a/Makefile b/Makefile
index 22756ff..8b53263 100644
--- a/Makefile
+++ b/Makefile
@@ -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
@@ -37,9 +40,6 @@ libgrapheme.a: $(REQ:=.o)
 libgrapheme.so: $(REQ:=.o)
        $(CC) -o $@ -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" > $@
        printf "#include <stdint.h>\n\n" >> $@

Reply via email to