From f479b438e6119e83c95b19aaeccd61a8e5eded27 Mon Sep 17 00:00:00 2001 From: epoch Date: Sun, 16 Dec 2018 19:28:39 -0600 Subject: fuck if I know. lots of shit. moved files. --- Makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3