From: Eric S. Raymond Date: Fri, 26 Sep 2014 15:28:59 +0000 (-0400) Subject: Always tes-build on make. X-Git-Tag: 1.1~2 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=07a6b32836ee28fc6004fc7cc4f81016ce8f354b;p=microjson.git Always tes-build on make. Too easy to miss version skew in the examples otherwise. --- diff --git a/Makefile b/Makefile index 8fdff48..2b67e5d 100644 --- 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