mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Re-structure files
This commit is contained in:
parent
497911e999
commit
a4eb852dba
|
@ -27,7 +27,7 @@ script:
|
||||||
- export CFLAGS=-Werror;
|
- export CFLAGS=-Werror;
|
||||||
- make clean; make;
|
- make clean; make;
|
||||||
- make clean;
|
- 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:
|
before_deploy:
|
||||||
- cd ..
|
- cd ..
|
||||||
|
|
8
Makefile
8
Makefile
|
@ -16,13 +16,13 @@ else
|
||||||
LDLIBS += -lncurses
|
LDLIBS += -lncurses
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DISTFILES = nnn.c nnn.h nnn.1 Makefile README.md LICENSE
|
DISTFILES = src nnn.1 Makefile README.md LICENSE
|
||||||
SRC = nnn.c
|
SRC = src/nnn.c
|
||||||
BIN = nnn
|
BIN = nnn
|
||||||
|
|
||||||
all: $(BIN)
|
all: $(BIN)
|
||||||
|
|
||||||
$(SRC): nnn.h
|
$(SRC): src/nnn.h
|
||||||
|
|
||||||
$(BIN): $(SRC)
|
$(BIN): $(SRC)
|
||||||
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|
||||||
|
@ -45,7 +45,7 @@ strip: $(BIN)
|
||||||
|
|
||||||
dist:
|
dist:
|
||||||
mkdir -p nnn-$(VERSION)
|
mkdir -p nnn-$(VERSION)
|
||||||
$(CP) $(DISTFILES) nnn-$(VERSION)
|
$(CP) -r $(DISTFILES) nnn-$(VERSION)
|
||||||
tar -cf nnn-$(VERSION).tar nnn-$(VERSION)
|
tar -cf nnn-$(VERSION).tar nnn-$(VERSION)
|
||||||
gzip nnn-$(VERSION).tar
|
gzip nnn-$(VERSION).tar
|
||||||
$(RM) -r nnn-$(VERSION)
|
$(RM) -r nnn-$(VERSION)
|
||||||
|
|
Loading…
Reference in a new issue