forked from rekkabell/kokorobot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
23 lines (20 loc) · 706 Bytes
/
Copy pathmakefile
File metadata and controls
23 lines (20 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
RELEASE_flags=-std=c89 -Os -DNDEBUG -g0 -s -Wall -Wno-unknown-pragmas
DEBUG_flags=-std=c89 -DDEBUG -Wall -Wno-unknown-pragmas -Wpedantic -Wshadow -Wextra -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Wvla -g -Og -fsanitize=address -fsanitize=undefined
.PHONY: run format clean
run: bin/kokorobot bin/dir src/htm/pics.htm
@ mkdir -p site/
@ bin/kokorobot
@ bin/dir media/content/sketch/
format:
@ clang-format -i src/main.c
clean:
rm -r site/
rm bin/*
bin/kokorobot: src/main.c
mkdir -p bin/
cc ${RELEASE_flags} src/main.c -o bin/kokorobot
bin/dir: src/dir.c
mkdir -p bin/
cc ${RELEASE_flags} src/dir.c -o bin/dir
src/htm/pics.htm: links/img.xml
./src/img.sh