test_microjson: test_microjson.o microjson.o
$(CC) $(CFLAGS) -o test_microjson test_microjson.o microjson.o
+# Regression test
check: test_microjson
test_microjson
example3: example3.c microjson.c
clean:
- rm -f microjson.o test_microjson.o test_microjson example1
+ rm -f microjson.o test_microjson.o test_microjson example[123]
CSUPPRESSIONS = -U__UNUSED__
cppcheck:
cppcheck -I. --template gcc --enable=all --suppress=unusedStructMember $(CSUPPRESSIONS) *.[ch]
SOURCES = Makefile *.[ch]
-DOCS = README COPYING microjson.asc
+DOCS = README COPYING NEWS control microjson.asc
ALL = $(SOURCES) $(DOCS)
microjson-$(VERSION).tar.gz: $(ALL)
tar --transform='s:^:microjson-$(VERSION)/:' --show-transformed-names -cvzf microjson-$(VERSION).tar.gz $(ALL)
dist: microjson-$(VERSION).tar.gz
+release: microjson-$(VERS).tar.gz microjson.html
+ shipper version=$(VERS) | sh -e -x