commit f9d6142c2b0db777246559e4cf1a87afb5ab279d
Author: sin <[email protected]>
Date: Tue Apr 22 11:53:58 2014 +0100
Add dist target to Makefile
diff --git a/Makefile b/Makefile
index 6f85121..dbbc57b 100644
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,15 @@ config.h:
@echo CC $<
@$(CC) -c -o $@ $< $(CFLAGS)
+dist: clean
+ @echo creating dist tarball
+ @mkdir -p tabbed-$(VERSION)
+ @cp LICENSE Makefile README config.def.h config.mk sinit.c \
+ tabbed-$(VERSION)
+ @tar -cf tabbed-$(VERSION).tar tabbed-$(VERSION)
+ @gzip tabbed-$(VERSION).tar
+ @rm -rf tabbed-$(VERSION)
+
install: all
@echo installing executable to $(DESTDIR)$(PREFIX)/bin
@mkdir -p $(DESTDIR)$(PREFIX)/bin