aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-04-23 23:12:54 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-04-23 23:31:08 +0530
commit00aaee9ff16fba929b8ec629810640b567d78591 (patch)
tree32d80990deda06a66f75ce65e8a68e49f74658fe /Makefile
parentff18d580c5e3e877e63e819d87af60128931d17d (diff)
downloadnnn-00aaee9ff16fba929b8ec629810640b567d78591.tar.gz
nlay - a highly customizable file handler
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index bb450f9..457da0c 100644
--- a/Makefile
+++ b/Makefile
@@ -6,17 +6,18 @@ MANPREFIX = $(PREFIX)/share/man
CFLAGS += -O3 -march=native -Wall -Wextra -Wno-unused-parameter
LDLIBS = -lreadline
ifeq ($(shell uname), Darwin)
- LDLIBS += -lncurses
+ LDLIBS += -lncurses
else
- LDLIBS += -lncursesw
+ LDLIBS += -lncursesw
endif
-DISTFILES = nnn.c config.def.h nnn.1 Makefile README.md LICENSE
+DISTFILES = nlay nnn.c config.def.h nnn.1 Makefile README.md LICENSE
LOCALCONFIG = config.h
SRC = nnn.c
BIN = nnn
+PLAYER = nlay
-all: $(BIN)
+all: $(BIN) $(PLAYER)
$(LOCALCONFIG): config.def.h
cp config.def.h $@
@@ -30,11 +31,13 @@ $(BIN): $(SRC)
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
+ cp -f $(PLAYER) $(DESTDIR)$(PREFIX)/bin
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
cp -f $(BIN).1 $(DESTDIR)$(MANPREFIX)/man1
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
+ rm -f $(DESTDIR)$(PREFIX)/bin/$(PLAYER)
rm -f $(DESTDIR)$(MANPREFIX)/man1/$(BIN).1
dist: