mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Add dist target
This commit is contained in:
parent
f4b5df5b3a
commit
89d0dc35ee
11
Makefile
11
Makefile
|
@ -1,3 +1,5 @@
|
||||||
|
VERSION = 0.0
|
||||||
|
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
MANPREFIX = $(PREFIX)/man
|
MANPREFIX = $(PREFIX)/man
|
||||||
|
|
||||||
|
@ -27,8 +29,15 @@ uninstall:
|
||||||
rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
|
rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
|
||||||
rm -f $(DESTDIR)$(MANPREFIX)/man1/$(BIN).1
|
rm -f $(DESTDIR)$(MANPREFIX)/man1/$(BIN).1
|
||||||
|
|
||||||
|
dist:
|
||||||
|
mkdir -p noice-$(VERSION)
|
||||||
|
cp LICENSE Makefile README config.def.h noice.1 noice.c queue.h strlcat.c strlcpy.c util.h noice-$(VERSION)
|
||||||
|
tar -cf noice-$(VERSION).tar noice-$(VERSION)
|
||||||
|
gzip noice-$(VERSION).tar
|
||||||
|
rm -rf noice-$(VERSION)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(BIN) $(OBJ)
|
rm -f $(BIN) $(OBJ) noice-$(VERSION).tar.gz
|
||||||
|
|
||||||
.SUFFIXES: .def.h
|
.SUFFIXES: .def.h
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue