2022-12-16 13:39:18 -05:00
|
|
|
DEPS = utf8 lowdown sxml-transforms clojurian symbol-utils scss srfi-1 srfi-13 srfi-14 ersatz
|
2022-12-02 16:41:55 -05:00
|
|
|
SRC = main.scm
|
|
|
|
DIR_INSTALL ?= /usr/local/bin
|
|
|
|
DIR_BUILD = .
|
|
|
|
BIN = repo2html
|
|
|
|
|
|
|
|
all: compile
|
|
|
|
|
|
|
|
compile:
|
2022-12-07 19:17:45 -05:00
|
|
|
mkdir -p $(DIR_BUILD)/
|
2022-12-02 16:41:55 -05:00
|
|
|
csc -O3 -static ./$(SRC) -o $(DIR_BUILD)/$(BIN)
|
|
|
|
rm ./$(DIR_BUILD)/$(BIN).link
|
|
|
|
@echo "Finished compiling a static binary in $(DIR_BUILD)/$(BIN)!"
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
chicken-install $(DEPS)
|
|
|
|
|
|
|
|
install:
|
|
|
|
install -Dm755 $(DIR_BUILD)/$(BIN) -D $(DIR_INSTALL)/$(PROG)
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm $(DIR_INSTALL)/$(PROG)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm $(DIR_BUILD)/$(BIN)
|
|
|
|
|
2022-12-16 19:39:50 -05:00
|
|
|
compile-on-debian-11:
|
|
|
|
# builds repo2html compatible with systems running glibc-2.31 and higher.
|
2022-12-18 14:57:18 -05:00
|
|
|
docker build docker
|
|
|
|
docker run -v $(shell pwd):/tmp/x -w /tmp/x --rm repo2htmlbuilder make compile
|
|
|
|
# the docker image "repo2htmlbuilder:latest" now exists on your system.
|
|
|
|
# this will make the next time you run this command go faster.
|
|
|
|
# to delete it and reclaim the space run "docker image rm repo2htmlbuilder:latest"
|