git.m455.casa

nicethings

clone url: git://git.m455.casa/nicethings


Makefile

1 DEPS = utf8 srfi-1 srfi-152
2 SRC = src/main.scm
3 DIR_INSTALL = /usr/local/bin
4 DIR_BUILD = builds
5 PROGRAM = nicethings
6
7 all: compile checksum
8
9 checksum: compile
10 sha256sum ./$(DIR_BUILD)/$(PROGRAM) | cut -d ' ' -f1 > ./$(DIR_BUILD)/$(PROGRAM)-sha256.txt
11
12 compile:
13 csc -O3 -static ./$(SRC) -o ./$(DIR_BUILD)/$(PROGRAM)
14 rm ./$(DIR_BUILD)/$(PROGRAM).link
15 @echo "Finished compiling a static binary in $(DIR_BUILD)/$(PROGRAM)!"
16
17 install:
18 install -Dm755 ./$(DIR_BUILD)/$(PROGRAM) -D $(DIR_INSTALL)/$(PROGRAM)
19
20 uninstall:
21 rm $(DIR_INSTALL)/$(PROGRAM)
22
23 dependencies:
24 chicken-install $(DEPS)
25
26 clean:
27 rm ./$(DIR_BUILD)/$(PROGRAM)
28