mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Add install/uninstall targets
This commit is contained in:
parent
12106af2a7
commit
65c1dfe167
11
Makefile
11
Makefile
|
@ -1,3 +1,4 @@
|
||||||
|
PREFIX = /usr/local
|
||||||
#CPPFLAGS += -DDEBUG
|
#CPPFLAGS += -DDEBUG
|
||||||
#CFLAGS += -g
|
#CFLAGS += -g
|
||||||
LDLIBS = -lncursesw
|
LDLIBS = -lncursesw
|
||||||
|
@ -19,5 +20,15 @@ noice.o: noice.c queue.h util.h
|
||||||
strlcpy.o: strlcpy.c util.h
|
strlcpy.o: strlcpy.c util.h
|
||||||
$(CC) $(CFLAGS) -c strlcpy.c
|
$(CC) $(CFLAGS) -c strlcpy.c
|
||||||
|
|
||||||
|
install: all
|
||||||
|
@echo installing $(BIN) to $(DESTDIR)$(PREFIX)/bin
|
||||||
|
@mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||||
|
@cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
|
||||||
|
@chmod 755 $(DESTDIR)$(PREFIX)/bin/$(BIN)
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
@echo removing $(BIN) from $(DESTDIR)$(PREFIX)/bin
|
||||||
|
@rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(BIN) $(OBJ)
|
rm -f $(BIN) $(OBJ)
|
||||||
|
|
Loading…
Reference in a new issue