mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +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
|
PREFIX ?= /usr/local
|
||||||
MANPREFIX = $(PREFIX)/share/man
|
MANPREFIX = $(PREFIX)/share/man
|
||||||
|
LICENSEPREFIX = $(PREFIX)/share/licenses/$(BIN)
|
||||||
|
|
||||||
CFLAGS += -O2 -Wall -Wextra -Wno-unused-parameter
|
CFLAGS += -O2 -Wall -Wextra -Wno-unused-parameter
|
||||||
LDLIBS = -lreadline
|
LDLIBS = -lreadline
|
||||||
|
@ -35,11 +36,14 @@ install: all
|
||||||
cp -f $(PLAYER) $(DESTDIR)$(PREFIX)/bin
|
cp -f $(PLAYER) $(DESTDIR)$(PREFIX)/bin
|
||||||
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
|
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
|
||||||
cp -f $(BIN).1 $(DESTDIR)$(MANPREFIX)/man1
|
cp -f $(BIN).1 $(DESTDIR)$(MANPREFIX)/man1
|
||||||
|
install -d $(LICENSEPREFIX)
|
||||||
|
install LICENSE $(LICENSEPREFIX)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
|
rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
|
||||||
rm -f $(DESTDIR)$(PREFIX)/bin/$(PLAYER)
|
rm -f $(DESTDIR)$(PREFIX)/bin/$(PLAYER)
|
||||||
rm -f $(DESTDIR)$(MANPREFIX)/man1/$(BIN).1
|
rm -f $(DESTDIR)$(MANPREFIX)/man1/$(BIN).1
|
||||||
|
rm -rf $(DESTDIR)$(LICENSEPREFIX)
|
||||||
|
|
||||||
dist:
|
dist:
|
||||||
mkdir -p nnn-$(VERSION)
|
mkdir -p nnn-$(VERSION)
|
||||||
|
|
Loading…
Reference in a new issue