# If the number or order of source files is changed, then coma.lisp
# should be upated.

.PHONY: check clean

coma-version.lisp: ../HOC/VERSION
	echo '(defparameter *coma-version* "'`hoc where`'")' > $@

check:
	clisp -q -ansi -i version test-version -x '(ho-version::test-version)'

clean:
	rm -rf .coma-build
	find . -name '.coma-sources.bundle' -or \
               -name 'coma-version.lisp' -or \
	       -name '*.x86f' -or \
	       -name '*.fas' -or \
               -name '*.lib' -or -name '*~' | xargs rm -f
