[hackers] [sinit] Add dist target to Makefile || sin

From: <git_AT_suckless.org>
Date: Wed, 23 Apr 2014 11:04:33 +0200

commit 76309c5e61defc04b88254111a764e849fa8ee71
Author: sin <sin_AT_2f30.org>
Date: Tue Apr 22 11:53:58 2014 +0100

    Add dist target to Makefile

diff --git a/Makefile b/Makefile
index 6f85121..4d8d11c 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -32,6 +32,15 @@ config.h:
         _AT_echo CC $<
         _AT_$(CC) -c -o $@ $< $(CFLAGS)
 
+dist: clean
+ _AT_echo creating dist tarball
+ _AT_mkdir -p sinit-$(VERSION)
+ _AT_cp LICENSE Makefile README config.def.h config.mk sinit.c \
+ sinit-$(VERSION)
+ _AT_tar -cf sinit-$(VERSION).tar sinit-$(VERSION)
+ _AT_gzip sinit-$(VERSION).tar
+ _AT_rm -rf sinit-$(VERSION)
+
 install: all
         _AT_echo installing executable to $(DESTDIR)$(PREFIX)/bin
         _AT_mkdir -p $(DESTDIR)$(PREFIX)/bin
_AT_@ -44,4 +53,4 @@ uninstall:
 
 clean:
         _AT_echo cleaning
- _AT_rm -f $(BIN) $(OBJ)
+ _AT_rm -f $(BIN) $(OBJ) sinit-$(VERSION).tar.gz
Received on Wed Apr 23 2014 - 11:04:33 CEST

This archive was generated by hypermail 2.3.0 : Wed Apr 23 2014 - 11:12:08 CEST