diff --git a/Makefile b/Makefile index 3597339a..a755d3b5 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # -*- makefile-gmake -*- -.PHONY: all libs doc dist clean cleaner dist-clean install uninstall test +.PHONY: all libs doc dist clean cleaner dist-clean install uninstall test checkdefs .PRECIOUS: %.c # install configuration @@ -167,6 +167,13 @@ cleaner: clean dist-clean: cleaner for f in `find lib -name \*.stub`; do rm -f $${f%.stub}.c; done +checkdefs: + @for d in $(D); do \ + if ! grep -q " SEXP_USE_$${d%%=*} " include/chibi/features.h; then \ + echo "WARNING: unknown definition $$d"; \ + fi; \ + done + test-basic: chibi-scheme$(EXE) @for f in tests/basic/*.scm; do \ $(CHIBI) $$f >$${f%.scm}.out 2>$${f%.scm}.err; \