summaryrefslogtreecommitdiff
blob: cf4c9637dd00929641c92faeb09dbba4fddd142d (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
26
27
28
29
30
# Copyright 2007-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2 or later

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

DESKTOPFILES = emacs.desktop emacsclient.desktop
ICONFILES = emacs.png sink.png \
	emacs_16.png emacs_24.png emacs_32.png emacs_48.png \
	emacs23_16.png emacs23_24.png emacs23_32.png emacs23_48.png \
	emacs23_128.png
DISTFILES = subdirs.el $(DESKTOPFILES) \
	$(addprefix icons/,COPYRIGHT.icons $(ICONFILES))


.PHONY: all dist clean $(DESKTOPFILES)

all:

dist: $(DISTFILES)
	tar -czf $(P).tar.gz --transform='s%^%$(P)/%' $^
	tar -tzvf $(P).tar.gz

$(DESKTOPFILES):
	desktop-file-validate $@

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