diff --git a/Makefile b/Makefile index bcd1f9a..74c8684 100644 --- a/Makefile +++ b/Makefile @@ -4,24 +4,27 @@ LOCAL_MODULES = utils utils-git DIR_INSTALL ?= /usr/local/bin BIN = repo2html -default: compile +.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: %.scm +%.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 $@ -compile: $(BIN) +clean-after-compile: $(BIN) rm -f $<.link @ls -sh $< @echo "Finished compiling static binary $