aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar sin <sin@2f30.org>2014-11-14 12:20:37 +0000
committerGravatar sin <sin@2f30.org>2014-11-14 12:20:37 +0000
commit89d0dc35ee86838b781b37d93172426cf5251609 (patch)
tree2aa210d232c125800a4683a4b7b75766ea2de463 /Makefile
parentf4b5df5b3af4d367f2116ecb27100ac4befcc79b (diff)
downloadnnn-89d0dc35ee86838b781b37d93172426cf5251609.tar.gz
Add dist target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d8736df..ed40ea9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+VERSION = 0.0
+
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/man
@@ -27,8 +29,15 @@ uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
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:
- rm -f $(BIN) $(OBJ)
+ rm -f $(BIN) $(OBJ) noice-$(VERSION).tar.gz
.SUFFIXES: .def.h