mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Makefile: LICENSE file will be handled by install/uninstall targets
This commit is contained in:
parent
968beb434a
commit
0c6ef732b4
4
Makefile
4
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)
|
||||
|
|
Loading…
Reference in a new issue