]> thyrsus.com Git - microjson.git/commitdiff
Always tes-build on make.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 26 Sep 2014 15:28:59 +0000 (11:28 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 26 Sep 2014 15:28:59 +0000 (11:28 -0400)
Too easy to miss version skew in the examples otherwise.

Makefile

index 8fdff48115fdf2a6decfc620a053bb227e4fa9e0..2b67e5d960ac3d0dbc51c3b290de34fa3e6682d1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,9 @@ CFLAGS = -O
 # Add DEBUG_ENABLE for the tracing code
 CFLAGS += -DDEBUG_ENABLE -g
 
+all: mjson.o test_microjson example1 example2 example3
+       @test_microjson
+
 mjson.o: mjson.c mjson.h
 
 test_microjson: test_microjson.o mjson.o
@@ -22,8 +25,6 @@ test_microjson: test_microjson.o mjson.o
 check: test_microjson
        test_microjson
 
-make testbuild: mjson.o test_microjson example1 example2 example3
-
 # Worked examples.  These are essentially subsets of the regresion test.
 example1: example1.c mjson.c
 example2: example2.c mjson.c