aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-04-22 11:53:58 +0100
committersin <sin@2f30.org>2014-04-23 10:04:27 +0100
commit76309c5e61defc04b88254111a764e849fa8ee71 (patch)
treee581cc831ef89d40bef3678a59c9ffc208022c6e /Makefile
parentb1b19ccf2786b06cbbe7a7986a08324f685ca036 (diff)
Add dist target to Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6f85121..4d8d11c 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 sinit-$(VERSION)
+ @cp LICENSE Makefile README config.def.h config.mk sinit.c \
+ sinit-$(VERSION)
+ @tar -cf sinit-$(VERSION).tar sinit-$(VERSION)
+ @gzip sinit-$(VERSION).tar
+ @rm -rf sinit-$(VERSION)
+
install: all
@echo installing executable to $(DESTDIR)$(PREFIX)/bin
@mkdir -p $(DESTDIR)$(PREFIX)/bin
@@ -44,4 +53,4 @@ uninstall:
clean:
@echo cleaning
- @rm -f $(BIN) $(OBJ)
+ @rm -f $(BIN) $(OBJ) sinit-$(VERSION).tar.gz