DEPS = utf8 lowdown sxml-transforms clojurian symbol-utils scss srfi-1 srfi-13 srfi-14 ersatz SRC = main.scm LOCAL_MODULES = utils utils-git DIR_INSTALL ?= /usr/local/bin BIN = repo2html .PHONY: clean clean-after-compile uninstall install dependencies default: $(BIN) clean-after-compile %: %.scm csc -O3 -static -strip $< # Note: things break if you use -O5 here. %.import.scm: %.o # $@ will have been created by the command to build $< %.o: %.scm csc -O3 -static -c -unit $* -emit-import-library $* $< $(DIR_INSTALL)/%: % install -Dm755 $< -D $@ clean-after-compile: $(BIN) rm -f $<.link @ls -sh $< @echo "Finished compiling static binary $