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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
--- Makefile.am 2014-10-28 02:56:56.000000000 +0800
+++ Makefile.am.new 2014-11-01 16:41:05.534958325 +0800
@@ -34,6 +34,11 @@
pixmap128dir=$(datadir)/icons/hicolor/128x128/apps
pixmap128_DATA=claws-mail-128x128.png
+# when changing the name or location of the .desktop file,
+# also update src/common/Makefile.am
+gnomapdir = $(datadir)/applications
+gnomap_DATA=claws-mail.desktop
+
rename-icons:
@cd $(DESTDIR)$(datadir)/icons/hicolor/64x64/apps && \
mv claws-mail-64x64.png claws-mail.png
--- Makefile.in 2014-10-28 02:59:07.000000000 +0800
+++ Makefile.in.new 2014-11-01 16:57:58.497854587 +0800
@@ -165,11 +165,12 @@
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
$(am__cd) "$$dir" && rm -f $$files; }; \
}
-am__installdirs = "$(DESTDIR)$(pixmapdir)" "$(DESTDIR)$(pixmap128dir)" \
- "$(DESTDIR)$(pixmap64dir)" "$(DESTDIR)$(pkgconfigdir)" \
- "$(DESTDIR)$(relnotesdir)" "$(DESTDIR)$(clawsincludedir)"
-DATA = $(pixmap_DATA) $(pixmap128_DATA) $(pixmap64_DATA) \
- $(pkgconfig_DATA) $(relnotes_DATA)
+am__installdirs = "$(DESTDIR)$(gnomapdir)" "$(DESTDIR)$(pixmapdir)" \
+ "$(DESTDIR)$(pixmap128dir)" "$(DESTDIR)$(pixmap64dir)" \
+ "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(relnotesdir)" \
+ "$(DESTDIR)$(clawsincludedir)"
+DATA = $(gnomap_DATA) $(pixmap_DATA) $(pixmap128_DATA) \
+ $(pixmap64_DATA) $(pkgconfig_DATA) $(relnotes_DATA)
HEADERS = $(clawsinclude_HEADERS)
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
@@ -512,6 +513,11 @@
pixmap64_DATA = claws-mail-64x64.png
pixmap128dir = $(datadir)/icons/hicolor/128x128/apps
pixmap128_DATA = claws-mail-128x128.png
+
+# when changing the name or location of the .desktop file,
+# also update src/common/Makefile.am
+gnomapdir = $(datadir)/applications
+gnomap_DATA = claws-mail.desktop
@UPDATE_GTK_ICON_CACHE_TRUE@gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = claws-mail.pc
@@ -593,6 +599,27 @@
distclean-libtool:
-rm -f libtool config.lt
+install-gnomapDATA: $(gnomap_DATA)
+ @$(NORMAL_INSTALL)
+ @list='$(gnomap_DATA)'; test -n "$(gnomapdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(gnomapdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(gnomapdir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(gnomapdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(gnomapdir)" || exit $$?; \
+ done
+
+uninstall-gnomapDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(gnomap_DATA)'; test -n "$(gnomapdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(gnomapdir)'; $(am__uninstall_files_from_dir)
install-pixmapDATA: $(pixmap_DATA)
@$(NORMAL_INSTALL)
@list='$(pixmap_DATA)'; test -n "$(pixmapdir)" || list=; \
@@ -1017,7 +1044,7 @@
all-am: Makefile $(DATA) $(HEADERS) config.h claws-features.h
installdirs: installdirs-recursive
installdirs-am:
- for dir in "$(DESTDIR)$(pixmapdir)" "$(DESTDIR)$(pixmap128dir)" "$(DESTDIR)$(pixmap64dir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(relnotesdir)" "$(DESTDIR)$(clawsincludedir)"; do \
+ for dir in "$(DESTDIR)$(gnomapdir)" "$(DESTDIR)$(pixmapdir)" "$(DESTDIR)$(pixmap128dir)" "$(DESTDIR)$(pixmap64dir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(relnotesdir)" "$(DESTDIR)$(clawsincludedir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-recursive
@@ -1072,9 +1099,9 @@
info-am:
-install-data-am: install-clawsincludeHEADERS install-pixmap128DATA \
- install-pixmap64DATA install-pixmapDATA install-pkgconfigDATA \
- install-relnotesDATA
+install-data-am: install-clawsincludeHEADERS install-gnomapDATA \
+ install-pixmap128DATA install-pixmap64DATA \
+ install-pixmapDATA install-pkgconfigDATA install-relnotesDATA
@$(NORMAL_INSTALL)
$(MAKE) $(AM_MAKEFLAGS) install-data-hook
install-dvi: install-dvi-recursive
@@ -1122,7 +1149,8 @@
ps-am:
-uninstall-am: uninstall-clawsincludeHEADERS uninstall-pixmap128DATA \
+uninstall-am: uninstall-clawsincludeHEADERS \
+ uninstall-gnomapDATA uninstall-pixmap128DATA \
uninstall-pixmap64DATA uninstall-pixmapDATA \
uninstall-pkgconfigDATA uninstall-relnotesDATA
@$(NORMAL_INSTALL)
@@ -1138,8 +1166,9 @@
distclean-hdr distclean-libtool distclean-tags distcleancheck \
distdir distuninstallcheck dvi dvi-am html html-am info \
info-am install install-am install-clawsincludeHEADERS \
- install-data install-data-am install-data-hook install-dvi \
- install-dvi-am install-exec install-exec-am install-html \
+ install-data install-data-am install-data-hook \
+ install-dvi install-dvi-am install-exec \
+ install-exec-am install-gnomapDATA install-html \
install-html-am install-info install-info-am install-man \
install-pdf install-pdf-am install-pixmap128DATA \
install-pixmap64DATA install-pixmapDATA install-pkgconfigDATA \
@@ -1148,8 +1177,8 @@
maintainer-clean maintainer-clean-generic \
maintainer-clean-local mostlyclean mostlyclean-generic \
mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
- uninstall-am uninstall-clawsincludeHEADERS uninstall-hook \
- uninstall-pixmap128DATA uninstall-pixmap64DATA \
+ uninstall-am uninstall-clawsincludeHEADERS uninstall-gnomapDATA \
+ uninstall-hook uninstall-pixmap128DATA uninstall-pixmap64DATA \
uninstall-pixmapDATA uninstall-pkgconfigDATA \
uninstall-relnotesDATA
|