~ac/chnode

9538a181105606896d97f089a021ac902d13d0d1 — Ant Cosentino 3 years ago 23fdfaf 0.0.1
add release target, update install instructions
2 files changed, 13 insertions(+), 2 deletions(-)

M Makefile
M README.md
M Makefile => Makefile +12 -0
@@ 8,6 8,18 @@ chnode: *.c
		$(shell curl-config --libs) \
		-o $@

.PHONY: install
install: *.c
	cc \
		-O3 \
		-D_FORTIFY_SOURCE=2 \
		-Wall \
		-pedantic \
		$^ \
		$(shell curl-config --libs) \
		-o chnode
	cp -r chnode $(PREFIX)/bin

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

M README.md => README.md +1 -2
@@ 11,8 11,7 @@
## Installing

* Ensure you have `libcurl` downloaded and reachable by your system's linker
* `make`
* Copy or symlink the resulting binary to somewhere on your `$PATH`
* `make install PREFIX=/parent/directory/of/your/bin/directory`

## Background