aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.travis.yml2
-rw-r--r--Makefile8
-rw-r--r--src/nnn.c (renamed from nnn.c)0
-rw-r--r--src/nnn.h (renamed from nnn.h)0
4 files changed, 5 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 31c2dc0..46b7774 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -27,7 +27,7 @@ script:
- export CFLAGS=-Werror;
- make clean; make;
- make clean;
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [[ "$CC" == "clang" ]]; then clang-tidy *.h *.c -- -I/usr/include; fi; fi
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [[ "$CC" == "clang" ]]; then clang-tidy src/* -- -I/usr/include; fi; fi
before_deploy:
- cd ..
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)
diff --git a/nnn.c b/src/nnn.c
index 575f91d..575f91d 100644
--- a/nnn.c
+++ b/src/nnn.c
diff --git a/nnn.h b/src/nnn.h
index 1fa7af6..1fa7af6 100644
--- a/nnn.h
+++ b/src/nnn.h