shithub: tinygl

Download patch

ref: 6b3bdd90524aa7b419c9ce30d88afc87945c49c8
parent: 3b1761c649260aae4b84683c5abfae2351d09ac7
author: gek <6974902+gordonfreeman424@users.noreply.github.com>
date: Sat Jun 5 21:43:16 EDT 2021

Automatic commit.

--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
 
-LIB = lib/libTinyGL.a
-LIBDIR= /usr/local/lib/
-INCDIR= /usr/local/lib/
+LIBNAME=libTinyGL.a
+LIB=lib/$(LIBNAME)
+LIBDIR=/usr/local/lib
+INCDIR=/usr/local/include
 
 all: $(LIB) RDMOS
 	@echo Done!
@@ -12,8 +13,12 @@
 
 install: $(LIB)
 	cp $(LIB) $(LIBDIR)
-	mkdir $(INCDIR)/tinygl
-	cp include/* $(INCDIR)/tinygl
+	mkdir $(INCDIR)/tinygl || echo "You installed before?"
+	cp -r include/* $(INCDIR)/tinygl
+
+uninstall:
+	rm -f $(LIBDIR)/$(LIBNAME)
+	rm -rf $(INCDIR)/tinygl
 
 SDL_Examples: $(LIB)
 	@echo "These demos require SDL 1.2 to compile."