| 1 |
# Document $Id: Makefile.am,v 1.10 2007/01/28 15:54:14 dleidert Exp $ |
| 2 |
# Summary Makefile for the chemical-mime-data project. |
| 3 |
# |
| 4 |
# Copyright (C) 2004-2007 by Daniel Leidert <[email protected]>. |
| 5 |
# |
| 6 |
# This file is free software. The copyright owner gives unlimited |
| 7 |
# permission to copy, distribute and modify it. |
| 8 |
|
| 9 |
EXTRA_DIST = $(icon_sources) |
| 10 |
|
| 11 |
CLEANFILES = *.png *.svgz |
| 12 |
|
| 13 |
MAINTAINERCLEANFILES = Makefile.in |
| 14 |
|
| 15 |
SUFFIXES = .svg .svgz |
| 16 |
|
| 17 |
icon_sources = gnome-mime-chemical.svg |
| 18 |
icon_sizes = 16 22 24 32 36 48 64 72 96 128 192 |
| 19 |
|
| 20 |
|
| 21 |
if BOOL_HICOLOR_THEME |
| 22 |
|
| 23 |
.svg.svgz: |
| 24 |
gzip $< -c > $@ |
| 25 |
for size in $(icon_sizes) ; do \ |
| 26 |
if test "x$(RSVG)" != "x" ; then \ |
| 27 |
$(RSVG) -w $${size} -h $${size} -f png $< $*_$${size}.png ; \ |
| 28 |
else \ |
| 29 |
$(CONVERT) $< -resize $${size}x$${size} $*_$${size}.png ; \ |
| 30 |
fi \ |
| 31 |
done |
| 32 |
|
| 33 |
all-local: $(icon_sources:.svg=.svgz) |
| 34 |
|
| 35 |
install-data-local: |
| 36 |
$(mkinstalldirs) $(DESTDIR)$(with_hicolor_theme) |
| 37 |
for file in $(icon_sources) ; do \ |
| 38 |
icon=`echo $${file} | sed -e 's/\.svg$$//'` ; \ |
| 39 |
$(mkinstalldirs) $(DESTDIR)$(with_hicolor_theme)/scalable/mimetypes ; \ |
| 40 |
$(INSTALL_DATA) $${icon}.svgz $(DESTDIR)$(with_hicolor_theme)/scalable/mimetypes ; \ |
| 41 |
for size in $(icon_sizes) ; do \ |
| 42 |
$(mkinstalldirs) $(DESTDIR)$(with_hicolor_theme)/$${size}x$${size}/mimetypes ; \ |
| 43 |
$(INSTALL_DATA) $${icon}_$${size}.png $(DESTDIR)$(with_hicolor_theme)/$${size}x$${size}/mimetypes/$${icon}.png ; \ |
| 44 |
done \ |
| 45 |
done |
| 46 |
|
| 47 |
uninstall-hook: |
| 48 |
for file in $(icon_sources) ; do \ |
| 49 |
icon=`echo $${file} | sed -e 's/\.svg$$//'` ; \ |
| 50 |
rm -f $(DESTDIR)$(with_hicolor_theme)/scalable/mimetypes/$${icon}.svgz ; \ |
| 51 |
for size in $(icon_sizes) ; do \ |
| 52 |
rm -f $(DESTDIR)$(with_hicolor_theme)/$${size}x$${size}/mimetypes/$${icon}.png ; \ |
| 53 |
done \ |
| 54 |
done |
| 55 |
|
| 56 |
endif #BOOL_HICOLOR_THEME |
| 57 |
|