~ac/chnode

a6d6a553682d40d7ac751021f78e88dc1ae5b6f5 — Ant Cosentino 3 years ago a31b3e5 master
experimenting with zig build system
2 files changed, 12 insertions(+), 1 deletions(-)

M .gitignore
M Makefile
M .gitignore => .gitignore +2 -0
@@ 1,4 1,6 @@

zig-cache

chnode

*.d

M Makefile => Makefile +10 -1
@@ 25,6 25,15 @@ install: *.c
		-o chnode
	cp -r chnode $(PREFIX)/bin

.PHONY: zig
zig:
	zig \
		build-exe \
		--c-source chnode.c \
		--library curl \
		-D PREFIX="\"$(shell echo $$HOME)\"" \
		-D TRACE=1

clean:
	-rm -f *.o *.out chnode
	-rm -rf $$HOME/.chnode
	-rm -rf $$HOME/.chnode zig-cache