aboutsummaryrefslogtreecommitdiff
path: root/mk/dist.mk
blob: 657c2f71f1575233bcd61e9600b68cffb6ea29be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# rules to make a distribution tarball from a git repo
# Copyright 2008 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.

DISTPREFIX?=	${NAME}-${VERSION}
DISTFILE?=	${DISTPREFIX}.tar.bz2

CLEANFILES+=	${DISTFILE}

dist:
	svn export . ${DISTPREFIX}
	tar cjpf ${DISTFILE} ${DISTPREFIX}
	rm -rf ${DISTPREFIX}