1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
PN = gentoo-syntax PV = $(shell sed '/^[ \t]*\* .*[Vv]ersion/!d;s/[^0-9.]*\([0-9.]*\).*/\1/;q' \ ChangeLog) P = $(PN)-$(PV) DISTFILE = gentoo-syntax.el .PHONY: all dist clean all: dist: $(DISTFILE) bzip2 -c $< >$(P).el.bz2 clean: -rm -f *~ *.tmp *.gz *.bz2