From 0eba832f8a578e07909d6334b41b8e42b5849af3 Mon Sep 17 00:00:00 2001 From: "Michael F. Lamb" Date: Sun, 26 Feb 2023 22:36:00 -0800 Subject: [PATCH] fix what i broke in previous commit. also fix docker building --- Makefile | 15 +++++++++------ utils-git.import.scm | 2 +- utils.import.scm | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-) 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 $