aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2018-12-16 19:28:39 -0600
committerepoch <epoch@hacking.allowed.org>2018-12-16 19:28:39 -0600
commitf479b438e6119e83c95b19aaeccd61a8e5eded27 (patch)
tree726a3916d9128f6c970f49431ef8b27140e49747 /Makefile
parent13dd5a6d313a2086647751286ca8315a12c804f1 (diff)
downloadhackvr-f479b438e6119e83c95b19aaeccd61a8e5eded27.tar.gz
hackvr-f479b438e6119e83c95b19aaeccd61a8e5eded27.zip
fuck if I know. lots of shit. moved files.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 4dcc13b..3b9f51a 100644
--- a/Makefile
+++ b/Makefile
@@ -2,21 +2,22 @@ all: hackvr hackvr_term
.PHONY: hackvr hackvr_term clean install uninstall all
+ifeq ($(PREFIX),)
+$(error the PREFIX variable is NOT set)
+endif
+
hackvr:
$(MAKE) -C src all
-hackvr_term:
- $(MAKE) -C hackvr_term all
-
clean:
$(MAKE) -C src clean
- $(MAKE) -C hackvr_term clean
install: hackvr hackvr_term
$(MAKE) -C src install
- $(MAKE) -C hackvr_term install
- install -D font/font.hackvr $(PREFIX)/share/hackvr/font.hackvr
+ cp -r bin/ $(PREFIX)/
+ cp -r share/hackvr/ $(PREFIX)/share/
uninstall:
+ ## we'll assume PREFIX is set to the hackvr we want to uninstall
$(MAKE) -C src uninstall
- $(MAKE) -C hackvr_term uninstall
+ rm -rf $(PREFIX)/share/hackvr