From 8c6a4590e9002aae56109964f9fc9146531f7ff3 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 21 Aug 2010 22:26:14 +0200 Subject: Add "make dist" --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 05a3d83..26f5ec5 100644 --- a/Makefile +++ b/Makefile @@ -57,9 +57,17 @@ uninstall: rm -rf ${font_dir} rm -rf ${image_dir} +dist: + mkdir /tmp/feh-${VERSION} + git --work-tree=/tmp/feh-${VERSION} checkout -f + sed -i 's/^VERSION ?= .*$$/VERSION ?= ${VERSION}/' \ + /tmp/feh-${VERSION}/config.mk + tar -C /tmp -cjf ../feh-${VERSION}.tar.bz2 feh-${VERSION} + rm -r /tmp/feh-${VERSION} + clean: @${MAKE} -C src clean @${MAKE} -C man clean .PHONY: all test test-x11 install uninstall clean install-man install-doc \ - install-bin install-font install-img + install-bin install-font install-img dist -- cgit v1.2.3