File: Makefile.am

package info (click to toggle)
djvulibre 3.5.27.1-10
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 9,664 kB
  • sloc: cpp: 65,465; xml: 5,723; ansic: 4,936; sh: 865; makefile: 316
file content (119 lines) | stat: -rw-r--r-- 2,793 bytes parent folder | download | duplicates (2)
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
all: icons

#icons

SVGICONS = \
scalable/mimetypes/image-vnd.djvu.svgz

PNGICONS = \
16x16/mimetypes/image-vnd.djvu.png \
20x20/mimetypes/image-vnd.djvu.png \
22x22/mimetypes/image-vnd.djvu.png \
24x24/mimetypes/image-vnd.djvu.png \
32x32/mimetypes/image-vnd.djvu.png \
48x48/mimetypes/image-vnd.djvu.png \
64x64/mimetypes/image-vnd.djvu.png \
72x72/mimetypes/image-vnd.djvu.png \
96x96/mimetypes/image-vnd.djvu.png \
128x128/mimetypes/image-vnd.djvu.png \
256x256/mimetypes/image-vnd.djvu.png 

icons: $(PNGICONS) $(SVGICONS)

if HAVE_CONVERSION_RSVG
convert_icons_process = \
s=`echo $@ | sed -e 's/[a-z]*\([0-9]*\).*/\1/'`; \
${RSVG} \
-w $${s} \
-h $${s} -o $@ $<
endif

if HAVE_CONVERSION_INKSCAPE
convert_icons_process = \
s=`echo $@ | sed -e 's/[a-z]*\([0-9]*\).*/\1/'`; \
${INKSCAPE} \
--without-gui \
--export-width=$${s} \
--export-height=$${s} \
--export-png=$@ $<
endif

if HAVE_CONVERSION_CONVERT
convert_icons_process = \
s=`echo $@ | sed -e 's/[a-z]*\([0-9]*\).*/\1/'`; \
${CONVERT} \
-geometry $${s}x$${s} \
-depth 8 \
-background none $< $@
endif

png_verbose = $(png_verbose_@AM_V@)
png_verbose_ = $(png_verbose_@AM_DEFAULT_V@)
png_verbose_0 = @echo "  PNG     " $@;

${PNGICONS}: djvu.svg Makefile
	$(AM_V_at)$(MKDIR_P) `dirname $@`
if HAVE_CONVERSION_TOOL
	$(png_verbose)$(convert_icons_process)
else
	$(AM_V_at)s=`echo $@ | sed -e 's/[a-z]*\([0-9]*\).*/\1/'`; \
	  cp ${top_srcdir}/desktopfiles/prebuilt-hi$${s}-djvu.png $@
endif

svg_process =\
cat $< | gzip -n >$@

svg_verbose = $(svg_verbose_@AM_V@)
svg_verbose_ = $(svg_verbose_@AM_DEFAULT_V@)
svg_verbose_0 = @echo "  SVG     " $@;

$(SVGICONS): djvu.svg Makefile
	$(AM_V_at)$(MKDIR_P) `dirname $@`
	$(AM_V_at)rm -f $@
	$(svg_verbose)$(svg_process)

iconsdir = $(datadir)/icons/hicolor
nobase_icons_DATA = $(PNGICONS) $(SVGICONS)

# mime
# | No longer install mime type description
# | because it conflicts with the defaults provided
# | by shared-mime-info.
# mimedir = $(datadir)/mime/packages
# dist_mime_DATA = djvulibre-mime.xml

# hooks

install-data-hook: update-mime
uninstall-hook: update-mime

update-mime:
	echo "*** You must still update various caches with:" ; \
	echo "*** # update-mime-database $(datadir)/mime" ; \
	echo "*** # update-icon-caches $(iconsdir)" 

# extra

EXTRA_DIST = \
djvu.svg \
prebuilt-hi128-djvu.png \
prebuilt-hi16-djvu.png \
prebuilt-hi20-djvu.png \
prebuilt-hi22-djvu.png \
prebuilt-hi24-djvu.png \
prebuilt-hi256-djvu.png \
prebuilt-hi32-djvu.png \
prebuilt-hi48-djvu.png \
prebuilt-hi64-djvu.png \
prebuilt-hi72-djvu.png \
prebuilt-hi96-djvu.png

# clean

MOSTLYCLEANFILES = $(PNGICONS) $(SVGICONS) 

mostlyclean-local:
	$(AM_V_at)for n in $(PNGICONS) $(SVGICONS) ; do m=`dirname "$$n"` ; \
	    while test "$$m" != "." ; do rmdir $$m ; m=`dirname "$$m"` ; done ; \
	done