blob: c8c72450d6cc1ee4058a4bb798c978070e85944f (
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
|
EXTRA_DIST = $(PACKAGE_NAME).svg $(PACKAGE_NAME).desktop.in
# Build a .desktop entry
if DESKTOP_ENTRY
CLEANFILES = $(PACKAGE_NAME).desktop
edit = sed \
-e 's|@PACKAGE_NAME[@]|$(PACKAGE_NAME)|g' \
-e 's|@bindir[@]|$(bindir)|g' \
-e 's|@EXEEXT[@]|$(EXEEXT)|g'
$(PACKAGE_NAME).desktop: Makefile
rm -f $@ $@.tmp
srcdir=''; \
test -f ./$@.in || srcdir=$(srcdir)/; \
$(edit) $${srcdir}$@.in >$@.tmp
chmod +x $@.tmp
chmod a-w $@.tmp
mv $@.tmp $@
$(PACKAGE_NAME).desktop: $(srcdir)/$(PACKAGE_NAME).desktop.in
desktopdir = $(datadir)/applications
icondir = $(datadir)/pixmaps
desktop_DATA = $(PACKAGE_NAME).desktop
icon_DATA = $(PACKAGE_NAME).svg
endif
|