summaryrefslogtreecommitdiff
blob: d8cb6b14ba252ca1ca764632c602c7b27e546026 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This Makefile creates the tarball to be uploaded to the Gentoo mirrors
#
# Copyright 2007-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

PN = eselect-emacs
#PV = $(shell sed '/^Version/h;$$!d;g;s/[^0-9.]*\([0-9.]*\).*/\1/' ChangeLog)
PV = $(shell sed '/^[ \t]*\* .*[Vv]ersion/!d;s/[^0-9.]*\([^ \t]*\).*/\1/;q' \
	ChangeLog)
P = $(PN)-$(PV)

DISTFILES = emacs.eselect ctags.eselect etags.eselect \
	emacs.eselect.5 ctags.eselect.5 etags.eselect.5 ChangeLog


.PHONY: all dist clean

all:

dist: $(DISTFILES)
	tar -cjf $(P).tar.bz2 --transform='s%^%$(P)/%' $^
	tar -tjvf $(P).tar.bz2

clean:
	-rm -f *~ *.tmp *.gz *.bz2