aboutsummaryrefslogtreecommitdiff
blob: 5154dae1e47f6c3fc42d8a9fc7192b7fc54635a1 (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
31
32
# Copyright 2007-2017 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 = sink.png \
	emacs22_16.png emacs22_24.png emacs22_32.png emacs22_48.png \
	emacs23_16.png emacs23_24.png emacs23_32.png emacs23_48.png \
	emacs23_128.png emacs23.svg \
	emacs25_16.png emacs25_24.png emacs25_32.png emacs25_48.png \
	emacs25_128.png emacs25.svg
DISTFILES = site-start.el site-gentoo.el subdirs.el $(DESKTOPFILES) \
	$(addprefix icons/,COPYRIGHT.icons $(ICONFILES))


.PHONY: all dist clean $(DESKTOPFILES)

all:

dist: $(DISTFILES)
	tar -cJf $(P).tar.xz --transform='s%^%$(P)/%' $^
	tar -tJvf $(P).tar.xz

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

clean:
	-rm -f *~ *.tmp *.xz