From 9538a181105606896d97f089a021ac902d13d0d1 Mon Sep 17 00:00:00 2001 From: Ant Cosentino Date: Fri, 31 Jan 2020 13:42:53 +0200 Subject: [PATCH] add release target, update install instructions --- Makefile | 12 ++++++++++++ README.md | 3 +-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1037487..f80f407 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index f8a6626..d406b58 100644 --- a/README.md +++ b/README.md @@ -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 -- 2.38.5