From f05e393aa3bbd84c1c8d6002009bec3c176e58a3 Mon Sep 17 00:00:00 2001 From: pho4cexa Date: Thu, 23 Feb 2023 23:37:07 -0800 Subject: [PATCH] maybe let's not have the complexity of a DIR_BUILD --- Makefile | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index f32f780..bcd1f9a 100644 --- a/Makefile +++ b/Makefile @@ -2,25 +2,24 @@ DEPS = utf8 lowdown sxml-transforms clojurian symbol-utils scss srfi-1 srfi-13 s SRC = main.scm LOCAL_MODULES = utils utils-git DIR_INSTALL ?= /usr/local/bin -DIR_BUILD = . BIN = repo2html default: compile %: %.scm - csc -O5 -static $< + csc -O3 -static -strip $< # Note: things break if you use -O5 here. %.import.scm: %.scm - csc -O4 -static -c -unit $* -emit-import-library $* $< + csc -O3 -static -c -unit $* -emit-import-library $* $< -$(DIR_BUILD): - mkdir -p $@/ +$(DIR_INSTALL)/%: % + install -Dm755 $< -D $@ -compile: $(DIR_BUILD)/$(BIN) - rm -f ./$(DIR_BUILD)/$(BIN).link - @ls -sh $(DIR_BUILD)/$(BIN) - @echo "Finished compiling a static binary in $(DIR_BUILD)/$(BIN)!" +compile: $(BIN) + rm -f $<.link + @ls -sh $< + @echo "Finished compiling static binary $