git.m455.casa

m455.casa

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


Makefile

1 # sudo make dependencies (install dependencies)
2 # make compile (create objects, then binaries from the objects, and then clean up leftover files)
3 # make (generate html)
4
5 all:
6 rm -rf build/*
7 ./bin/generate
8 cp style.css build/
9 cp -r html/* build/
10 mkdir -p build/assets
11 cp -r assets/* build/assets/
12
13 # note: need to run this make target as root
14 dependencies:
15 chicken-install utf8 spiffy srfi-1
16
17 serve:
18 ./bin/web-server
19
20 compile: build-objects bin/generate bin/web-server clean
21
22 build-objects: src/static.scm src/utils.scm src/parser.scm
23 csc -c -static -J src/static.scm -unit static -o static.o
24 csc -c -static -J src/utils.scm -unit utils -o utils.o
25 csc -c -static -J src/parser.scm -unit parser -o parser.o
26
27 bin/generate: src/generate.scm static.o utils.o parser.o
28 csc -o bin/generate -static static.o utils.o parser.o -uses static -uses utils -uses parser src/generate.scm
29
30 bin/web-server: src/web-server.scm static.o utils.o parser.o
31 csc -o bin/web-server -static static.o -uses static src/web-server.scm
32
33 clean:
34 rm *.link *.import.scm *.o bin/*.link