summaryrefslogtreecommitdiff
path: root/Makefile
blob: 4aa96a3a63c2166b8326cbb586e035d2098d7669 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
PREFIX:=/usr/local

all: hackvr

.PHONY: hackvr clean install uninstall all

hackvr:
	$(MAKE) -C src all

clean:
	$(MAKE) -C src clean

install: hackvr
	$(MAKE) -C src install
	mkdir -p $(PREFIX)/bin
	install -t $(PREFIX)/bin bin/*
	mkdir -p $(PREFIX)/share/applications
	install -t $(PREFIX)/share/applications share/applications/*
	mkdir -p $(PREFIX)/share/hackvr/
	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