27 lines
472 B
Makefile
27 lines
472 B
Makefile
|
DEPS = utf8 lowdown
|
||
|
SRC = main.scm
|
||
|
DIR_INSTALL ?= /usr/local/bin
|
||
|
DIR_BUILD = .
|
||
|
BIN = repo2html
|
||
|
|
||
|
all: compile
|
||
|
|
||
|
compile:
|
||
|
mkdir $(DIR_BUILD)/
|
||
|
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)
|
||
|
|