From 490f194d9146d3c41ea804047a539fda2f025800 Mon Sep 17 00:00:00 2001 From: thebenraskin Date: Sat, 11 Jan 2020 11:19:49 -0500 Subject: install/uninstall targets --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 6bc9835..1db2305 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,18 @@ BIN = irc CFLAGS = -std=c99 -Os -D_POSIX_C_SOURCE=201112 -D_GNU_SOURCE -D_XOPEN_CURSES -D_XOPEN_SOURCE_EXTENDED=1 -D_DEFAULT_SOURCE -D_BSD_SOURCE LDFLAGS = -lncursesw -lssl -lcrypto +PREFIX=/usr/local + all: ${BIN} +install: ${BIN} + mkdir -p ${PREFIX}/bin + cp -f ${BIN} ${PREFIX}/bin + chmod 755 ${PREFIX}/bin/${BIN} + +uninstall: + rm -f ${PREFIX}/bin/${BIN} + clean: rm -f ${BIN} *.o -- cgit v1.2.3