From 933a856e05a41ab63dac33ce53da48d91009613f Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Mon, 20 Jun 2022 23:25:44 -0600 Subject: install man page and other makefile stuff --- Makefile | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 252e8a7..0e4ef6b 100644 --- a/Makefile +++ b/Makefile @@ -5,21 +5,26 @@ include config.mk SRC = uirc.c uirc: ${SRC} - ${CC}${OPTIONS} -o uirc -O3 ${SRC} -lcurl -lm + ${CC} ${OPTIONS} -o uirc ${SRC} -lcurl -lm debug: uirc - ${CC} -g${OPTIONS} -o d_uirc -O3 ${SRC} -lcurl -lm + ${CC} -g ${OPTIONS} -o d_uirc -O3 ${SRC} -lcurl -lm gdb d_uirc rm d_uirc +clean: + rm ./uirc + install: uirc - mkdir -p ${PREFIX} - cp -f uirc ${PREFIX} - chmod 755 ${PREFIX}/uirc + mkdir -p ${PREFIX}/bin + cp -f uirc ${PREFIX}/bin + chmod 755 ${PREFIX}/bin/uirc + mkdir -p ${MAN_PREFIX}/man1 + cp -f uirc.1 ${MAN_PREFIX}/man1 uninstall: - rm ${PREFIX}/uirc - test -s ${INCLUDE_PREFIX}/uirc && rm -r ${INCLUDE_PREFIX}/uirc + rm ${PREFIX}/bin/uirc + rm ${MAN_PREFIX}/man1/uirc.1 stb: @echo "It is best to download the stb library from your system's package manager." @@ -28,4 +33,4 @@ stb: mkdir -p ${INCLUDE_PREFIX}/stb wget https://raw.githubusercontent.com/nothings/stb/master/stb_image.h -P ${INCLUDE_PREFIX}/stb -.PHONY: uirc install stb +.PHONY: uirc clean install uninstall stb -- cgit v1.2.3