mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 14:19:18 +02:00
adding a utility to make sure I'm using valid definitions
This commit is contained in:
parent
e57a587216
commit
bb7cae7e92
1 changed files with 8 additions and 1 deletions
9
Makefile
9
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; \
|
||||
|
|
Loading…
Add table
Reference in a new issue