Add dist target to Makefile - sinit - suckless init | |
git clone git://git.suckless.org/sinit | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 76309c5e61defc04b88254111a764e849fa8ee71 | |
parent b1b19ccf2786b06cbbe7a7986a08324f685ca036 | |
Author: sin <[email protected]> | |
Date: Tue, 22 Apr 2014 11:53:58 +0100 | |
Add dist target to Makefile | |
Diffstat: | |
M Makefile | 11 ++++++++++- | |
1 file changed, 10 insertions(+), 1 deletion(-) | |
--- | |
diff --git 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 |