Compare commits
2 commits
7ff570b1a8
...
78a4499309
Author | SHA1 | Date | |
---|---|---|---|
78a4499309 | |||
fd84c162af |
2 changed files with 2 additions and 8 deletions
8
Makefile
8
Makefile
|
@ -2,10 +2,8 @@
|
|||
|
||||
VERSION = 1.0
|
||||
TARGET = neo
|
||||
MANPAGE = $(TARGET).1
|
||||
PREFIX ?= /usr/local
|
||||
BINDIR = $(PREFIX)/bin
|
||||
MANDIR = $(PREFIX)/share/man/man1
|
||||
|
||||
CFLAGS += -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700
|
||||
|
||||
|
@ -14,21 +12,17 @@ $(TARGET): $(TARGET).c
|
|||
|
||||
dist:
|
||||
mkdir -p $(TARGET)-$(VERSION)
|
||||
cp -R README.md $(MANPAGE) $(TARGET) $(TARGET)-$(VERSION)
|
||||
cp -R README.md $(TARGET) $(TARGET)-$(VERSION)
|
||||
tar -czf $(TARGET)-$(VERSION).tar.gz $(TARGET)-$(VERSION)
|
||||
rm -rf $(TARGET)-$(VERSION)
|
||||
|
||||
install: $(TARGET)
|
||||
mkdir -p $(DESTDIR)$(BINDIR)
|
||||
mkdir -p $(DESTDIR)$(MANDIR)
|
||||
cp -p $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
|
||||
chmod 755 $(DESTDIR)$(BINDIR)/$(TARGET)
|
||||
cp -p $(MANPAGE) $(DESTDIR)$(MANDIR)/$(MANPAGE)
|
||||
chmod 644 $(DESTDIR)$(MANDIR)/$(MANPAGE)
|
||||
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)$(BINDIR)/$(TARGET)
|
||||
rm -f $(DESTDIR)$(MANDIR)/$(MANPAGE)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET)
|
||||
|
|
|
@ -4,7 +4,7 @@ neo is a fuzzy finder inspired by fnf and supports basic colours.
|
|||
# Usage
|
||||
```
|
||||
cat file | neo
|
||||
echo "choice1\nchoice2\nchoice3" | neo
|
||||
echo -e "choice1\nchoice2\nchoice3" | neo
|
||||
```
|
||||
|
||||
# Dependencies
|
||||
|
|
Loading…
Reference in a new issue