aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-11-10 13:39:45 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-11-10 13:42:18 +0530
commita4eb852dba1cbe89b21f75d514a18d7bafb95805 (patch)
tree0b55624efa0629e7b3b447eb77194ddf55c5119f /Makefile
parent497911e999d34fbb34a6abdb045afd3e6a6c2d1f (diff)
downloadnnn-a4eb852dba1cbe89b21f75d514a18d7bafb95805.tar.gz
Re-structure files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 12769c6..4d70564 100644
--- a/Makefile
+++ b/Makefile
@@ -16,13 +16,13 @@ else
LDLIBS += -lncurses
endif
-DISTFILES = nnn.c nnn.h nnn.1 Makefile README.md LICENSE
-SRC = nnn.c
+DISTFILES = src nnn.1 Makefile README.md LICENSE
+SRC = src/nnn.c
BIN = nnn
all: $(BIN)
-$(SRC): nnn.h
+$(SRC): src/nnn.h
$(BIN): $(SRC)
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
@@ -45,7 +45,7 @@ strip: $(BIN)
dist:
mkdir -p nnn-$(VERSION)
- $(CP) $(DISTFILES) nnn-$(VERSION)
+ $(CP) -r $(DISTFILES) nnn-$(VERSION)
tar -cf nnn-$(VERSION).tar nnn-$(VERSION)
gzip nnn-$(VERSION).tar
$(RM) -r nnn-$(VERSION)