all: clean isisscripts help isisscripts: share/isisscripts.sl doc: help help: share/isisscripts.txt ######################################################################## .PHONY: share/isisscripts.sl share/isisscripts.sl: @bin/makestatic_isisscripts > tmp.sl @mv tmp.sl $@ @make test .PHONY: test # the isis load path rest to only find the isisscripts.sl, as it should be executable # without other modules like slxfig, png , ... test: @echo 'isis> set_isis_load_path(getcwd+"share"); require("isisscripts");' @echo 'err=0; try(e) { require("share/isisscripts.sl"); } catch AnyError: { vmessage("\\"%s\\" exception:\\n%s\\n%s:%d", e.descr, e.message, e.file, e.line); err=1; } exit(err);' | isis -n @awk '/^#/ {if (match($$0, "#if")) i++; else if (match($$0, "#endif")) j++ } END { if (i-j != 0) print "\n ### Error: ### Number of #if* statements and #endif statements are not equal. Check your code again!\n"}' share/isisscripts.sl .PHONY: share/isisscripts.slc share/isisscripts.slc: share/isisscripts.sl echo 'byte_compile_file("share/isisscripts.sl", 0);' | isis mv share/isisscripts.sl share/isisscripts_sl .PHONY: share/isisscripts.txt share/isisscripts.txt: cd doc; make distclean isisscripts_help.txt; make clean; cd .. mv doc/isisscripts_help.txt $@ find_ws: find src -name \*.sl -exec bin/find_whitespace.pl {} \; | jed clean: @echo "deleting the following files:" @find -name \*~ @find -name \*~ -exec rm -f {} \; @echo "-----------------------------" resolve_conflict: @echo "checking out files that are anyway produced automatically, hoping that this will resolve a conflict:" git checkout share/isisscripts.sl share/isisscripts.txt