From b58b6005c989a102e0e3c1212949a99e9ca71e04 Mon Sep 17 00:00:00 2001 From: Nick White Date: Thu, 21 Jul 2011 23:24:29 +0100 Subject: Add dist rule to makefile --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ac6b529..2c50c3e 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ # See COPYING file for copyright, license and warranty details. include config.mk +NAME = getbooks + SRC = getgbook.c LIB = util.o @@ -34,4 +36,11 @@ uninstall: clean: rm -f -- $(BIN) $(OBJ) util.a -.PHONY: all clean install uninstall +dist: + @mkdir -p $(NAME)-$(VERSION) + @cp $(SRC) util.h util.c Makefile config.mk $(NAME)-$(VERSION) + @tar c $(NAME)-$(VERSION) | gzip -c > $(NAME)-$(VERSION).tar.gz + @rm -rf $(NAME)-$(VERSION) + @echo $(NAME)-$(VERSION).tar.gz + +.PHONY: all clean install uninstall dist -- cgit v1.2.3