From 4443bcac35fe26fa8165c9adb9c8e6927a05ba9a Mon Sep 17 00:00:00 2001 From: Andrea Colangelo Date: Sat, 13 Sep 2014 10:34:36 +0200 Subject: [PATCH] Add Makefile target to build release tarball --- Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9533762..5ec5c5a 100755 --- a/Makefile +++ b/Makefile @@ -4,6 +4,10 @@ # This file is free software, and is released under the terms of the WTFPL, as # described here: http://www.wtfpl.net/txt/copying/ +SHELL = /bin/bash + +RELEASE = 5.0.1 + CC = gcc CFLAGS = -g -Wall LIBS = -lncurses @@ -29,5 +33,15 @@ install: clean: $(RM) $(TARGET) + $(RM) -rf .release-tmp + +release: clean + mkdir -p .release-tmp/$(TARGET)-$(RELEASE)/ + cp -rv * .release-tmp/$(TARGET)-$(RELEASE) + rm -rf .release-tmp/$(TARGET)-$(RELEASE)/debian + rm -f .release-tmp/$(TARGET)-$(RELEASE)/qmenu.{cfg,frm,gif,hlp} + rm -f .release-tmp/$(TARGET)-$(RELEASE)/README_it.md + tar cf $(TARGET)-$(RELEASE).tar.gz -C .release-tmp $(TARGET)-$(RELEASE) + rm -rf .release-tmp -.PHONY: build install clean +.PHONY: build install clean release