From 0c6ef732b41acccd400a3f45ac155a25e1f835e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20K=C3=B6nig?= Date: Sat, 16 Sep 2017 01:42:50 +0200 Subject: [PATCH] Makefile: LICENSE file will be handled by install/uninstall targets --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index d281d0cb..397acc0f 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ VERSION = 1.4 PREFIX ?= /usr/local MANPREFIX = $(PREFIX)/share/man +LICENSEPREFIX = $(PREFIX)/share/licenses/$(BIN) CFLAGS += -O2 -Wall -Wextra -Wno-unused-parameter LDLIBS = -lreadline @@ -35,11 +36,14 @@ install: all cp -f $(PLAYER) $(DESTDIR)$(PREFIX)/bin mkdir -p $(DESTDIR)$(MANPREFIX)/man1 cp -f $(BIN).1 $(DESTDIR)$(MANPREFIX)/man1 + install -d $(LICENSEPREFIX) + install LICENSE $(LICENSEPREFIX) uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN) rm -f $(DESTDIR)$(PREFIX)/bin/$(PLAYER) rm -f $(DESTDIR)$(MANPREFIX)/man1/$(BIN).1 + rm -rf $(DESTDIR)$(LICENSEPREFIX) dist: mkdir -p nnn-$(VERSION)