From 53575c264f4bdf90e2778c356164ddec00ddd727 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 16 Sep 2021 16:19:18 +0200 Subject: Improve makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e59affe..ea7c41b 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ .POSIX: -PREFIX = /usr -MANPREFIX = $(PREFIX)/share/man +CONFIGFILE = config.mk +include $(CONFIGFILE) + all: @: @@ -9,16 +10,12 @@ all: install: mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1" - mkdir -p -- "$(DESTDIR)$(PREFIX)/share/licenses/blue" cp -- blue "$(DESTDIR)$(PREFIX)/bin/" cp -- blue.1 "$(DESTDIR)$(MANPREFIX)/man1/" - cp -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/blue/" uninstall: -rm -f -- "$(DESTDIR)$(PREFIX)/bin/blue" -rm -f -- blue.1 "$(DESTDIR)$(MANPREFIX)/man1/blue.1" - -rm -f -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/blue/LICENSE" - -rmdir -- LICENSE "$(DESTDIR)$(PREFIX)/share/licenses/blue" clean: @: -- cgit v1.2.3-70-g09d2