summaryrefslogtreecommitdiff
blob: 86334f6bff1b29e64778db1091c40ac6cc91b40f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
PN = gentoo-syntax
PV = $(shell sed '/^[ \t]*\* .*[Vv]ersion/!d;s/[^0-9.]*\([0-9.]*\).*/\1/;q' \
	ChangeLog)
P = $(PN)-$(PV)

DISTFILES = gentoo-syntax.el 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