summaryrefslogtreecommitdiff
path: root/Makefile
blob: 37ab95a88c1bb8c51460e7e2d31056944a7f2a19 (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
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
	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