blob: af7d02399ef9ebad924a77f7d1e656ce119b752f (
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-2015 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 \
emacs_16.png emacs_24.png emacs_32.png emacs_48.png emacs_128.png \
emacs.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
|