zygo

ncurses gopher client
Log | Files | Refs

commit b21bec2bc9fa09163f4ce68cd35152174c79f7e8
parent 67b02509ffd1e833a298cd12643877b7e9773fdd
Author: hhvn <dev@hhvn.uk>
Date:   Sun, 16 Jan 2022 23:43:09 +0000

Makefile: install/uninstall targets

Diffstat:
MMakefile | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -14,6 +14,8 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +PREFIX = /usr/local +BINDIR = /usr/local/bin BIN = zygo SRC += zygo.c OBJ = $(SRC:.c=.o) @@ -30,10 +32,16 @@ zygo.o: config.h .c.o: $(CC) $(CFLAGS) -c $< -o $@ +install: + cp -f $(BIN) $(BINDIR)/$(BIN) + +uninstall: + -rm -rf $(BINDIR)/$(BIN) + clean: -rm -f $(OBJ) $(BIN) config.h: config.def.h cp config.def.h config.h -.PHONY: clean +.PHONY: clean install uninstall