summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2020-04-03 00:50:32 -0500
committerepoch <epoch@hacking.allowed.org>2020-04-03 00:50:32 -0500
commite79da077df27d5c14cb4734f0ce6e1572ebbf61c (patch)
tree2841e11c4c44e2fb77de7eaf314659b22a0ae1bd
parentd5ffa6fbcbdfbe8abf3b3b542f86b8f96d23eaed (diff)
downloadhackvr-e79da077df27d5c14cb4734f0ce6e1572ebbf61c.tar.gz
hackvr-e79da077df27d5c14cb4734f0ce6e1572ebbf61c.zip
changed some cp -r into install, uninstall now removes the "desktop" file for hackvr. removed hackvr_term targets and deps
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 131f46a..37ab95a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
PREFIX:=/usr/local
-all: hackvr hackvr_term
+all: hackvr
-.PHONY: hackvr hackvr_term clean install uninstall all
+.PHONY: hackvr clean install uninstall all
hackvr:
$(MAKE) -C src all
@@ -10,12 +10,14 @@ hackvr:
clean:
$(MAKE) -C src clean
-install: hackvr hackvr_term
+install: hackvr
$(MAKE) -C src install
- cp -r bin/ $(PREFIX)/
- cp -r share/hackvr/ $(PREFIX)/share/
+ install -t $(PREFIX)/bin bin/*
+ install -t $(PREFIX)/share/applications share/applications/*
+ cp -r share/hackvr $(PREFIX)/share/hackvr
uninstall:
## we'll assume PREFIX is set to the hackvr we want to uninstall
$(MAKE) -C src uninstall
+ rm -f $(PREFIX)/share/applications/hackvr
rm -rf $(PREFIX)/share/hackvr