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