summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2022-03-12 22:27:36 -0700
committerBryson Steck <steck.bryson@gmail.com>2022-03-12 22:27:36 -0700
commit00fa0c15e17397edf27be5157abd82a5f5a28c8f (patch)
tree331ca87028176e8e65a826fb606311394d06c164 /Makefile
parent2c29d8cfa0e71ba108e4d0d2665c047a9b837161 (diff)
downloaduirc-00fa0c15e17397edf27be5157abd82a5f5a28c8f.tar
uirc-00fa0c15e17397edf27be5157abd82a5f5a28c8f.tar.gz
uirc-00fa0c15e17397edf27be5157abd82a5f5a28c8f.tar.bz2
have users get the stb headers
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4a5052e..0fdaec2 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,19 @@ install: uirc
mkdir -p ${PREFIX}/bin
cp -f uirc ${PREFIX}/bin
chmod 755 ${PREFIX}/bin/uirc
+ mkdir -p ${LIB_PREFIX}/uirc
+ cp -f LICENSE ${LIB_PREFIX}/uirc
-.PHONY: uirc install
+uninstall:
+ rm ${PREFIX}/bin/uirc
+ rm -r ${LIB_PREFIX}/uirc
+ test -s ${INCLUDE_PREFIX}/uirc || rm -r ${INCLUDE_PREFIX}/uirc
+stb:
+ @echo "It is best to download the stb library from your system's package manager.
+ @echo "Press ENTER to manually install the stb headers needed. Otherwise, quit with ^C"
+ @read
+ mkdir -p ${INCLUDE_PREFIX}/uirc
+ wget https://raw.githubusercontent.com/nothings/stb/master/stb_image.h -P /usr/include/uirc/stb_image.h
+
+.PHONY: uirc install stb