about summary refs log tree commit diff
path: root/makefile
blob: d29330713d79a5b0738d9cf9acc77d1ae62a829f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
all: gen

# generator
ZIG     ?= zig
rbc_SRC := src/main.zig src/fs.zig src/gen.zig src/exe.zig
rbc_BIN := bin/rbc

$(rbc_BIN): $(rbc_SRC)
	$(ZIG) build-exe -lc -O Debug -freference-trace -femit-bin=$@ $<

rbc: $(rbc_BIN)

clean:
	@ rm -rf site/* $(rbc_BIN) $(md_SRC:%.md=%.htm)

gen: $(rbc_BIN)
	# TODO: fix the panic
	@ $(rbc_BIN) md
	@ $(rbc_BIN) gen

watch:
	@ $(rbc_BIN) watch

serve:
	@ $(rbc_BIN) serve

watch-and-serve:
	@ ${MAKE} -j2 watch serve

was: watch-and-serve
dev: watch-and-serve

.PHONY: gen clean serve watch watch-and-serve was

include webdeploy.mk
include edit.mk