From 07a6b32836ee28fc6004fc7cc4f81016ce8f354b Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 26 Sep 2014 11:28:59 -0400 Subject: [PATCH] Always tes-build on make. Too easy to miss version skew in the examples otherwise. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.43.0