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

clean:
	$(MAKE) -C src clean

install: hackvr hackvr_term
	$(MAKE) -C src install
	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
	rm -rf $(PREFIX)/share/hackvr