File: Makefile.am

package info (click to toggle)
chemical-mime-data 0.1.94-7
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 1,036 kB
  • sloc: sh: 457; makefile: 169
file content (57 lines) | stat: -rw-r--r-- 1,752 bytes parent folder | download
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
# Document  $Id: Makefile.am,v 1.10 2007/01/28 15:54:14 dleidert Exp $
# Summary   Makefile for the chemical-mime-data project.
#
# Copyright (C) 2004-2007 by Daniel Leidert <daniel.leidert@wgdd.de>.
#
# This file is free software. The copyright owner gives unlimited
# permission to copy, distribute and modify it.

EXTRA_DIST = $(icon_sources)

CLEANFILES = *.png *.svgz

MAINTAINERCLEANFILES = Makefile.in

SUFFIXES = .svg .svgz

icon_sources = gnome-mime-chemical.svg
icon_sizes   = 16 22 24 32 36 48 64 72 96 128 192


if BOOL_HICOLOR_THEME

.svg.svgz:
	gzip $< -c > $@
	for size in $(icon_sizes) ; do \
		if test "x$(RSVG)" != "x" ; then \
			$(RSVG) -w $${size} -h $${size} -f png $< -o $*_$${size}.png ; \
		else \
			$(CONVERT) $< -resize $${size}x$${size} $*_$${size}.png ; \
		fi \
	done

all-local: $(icon_sources:.svg=.svgz)

install-data-local:
	$(mkinstalldirs) $(DESTDIR)$(with_hicolor_theme)
	for file in $(icon_sources) ; do \
		icon=`echo $${file} | sed -e 's/\.svg$$//'` ; \
		$(mkinstalldirs) $(DESTDIR)$(with_hicolor_theme)/scalable/mimetypes ; \
		$(INSTALL_DATA) $${icon}.svgz $(DESTDIR)$(with_hicolor_theme)/scalable/mimetypes ; \
		for size in $(icon_sizes) ; do \
			$(mkinstalldirs) $(DESTDIR)$(with_hicolor_theme)/$${size}x$${size}/mimetypes ; \
			$(INSTALL_DATA) $${icon}_$${size}.png $(DESTDIR)$(with_hicolor_theme)/$${size}x$${size}/mimetypes/$${icon}.png ; \
		done \
	done

uninstall-hook:
	for file in $(icon_sources) ; do \
		icon=`echo $${file} | sed -e 's/\.svg$$//'` ; \
		rm -f $(DESTDIR)$(with_hicolor_theme)/scalable/mimetypes/$${icon}.svgz ; \
		for size in $(icon_sizes) ; do \
			rm -f $(DESTDIR)$(with_hicolor_theme)/$${size}x$${size}/mimetypes/$${icon}.png ; \
		done \
	done

endif #BOOL_HICOLOR_THEME