Skip to content

Commit

Permalink
Add Makefile target to build release tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
warp10 committed Sep 13, 2014
1 parent a2c22fb commit 4443bca
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 4443bca

Please sign in to comment.