#-----------------------------------------------------------------------------+
# Makefile - for wp-mirror icon and favicon                                   |
# Copyright (C) 2012 Dr. Kent L. Miller.  All rights reserved.                |
#                                                                             |
# This program is free software: you can redistribute it and/or modify        |
# it under the terms of the GNU General Public License as published by        |
# the Free Software Foundation, either version 3 of the License, or (at       |
# your option) any later version.                                             |
#                                                                             |
# This program is distributed in the hope that it will be useful, but         |
# WITHOUT ANY WARRANTY; without even the implied warranty of                  |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU           |
# General Public License for more details.                                    |
#                                                                             |
# You should have received a copy of the GNU General Public License           |
# along with this program.  If not, see <http://www.gnu.org/licenses/>")      |
#-----------------------------------------------------------------------------+


PROGRAM   = wp-mirror
XCF       = $(PROGRAM).xcf
PNG       = $(PROGRAM).png
ICON16    = 16px-$(PROGRAM).png
ICON22    = 22px-$(PROGRAM).png
ICON24    = 24px-$(PROGRAM).png
ICON32    = 32px-$(PROGRAM).png
ICON48    = 48px-$(PROGRAM).png
ICON64    = 64px-$(PROGRAM).png
ICON128   = 128px-$(PROGRAM).png
ICON256   = 256px-$(PROGRAM).png
ICON135   = 135px-$(PROGRAM).png
PIXMAP    = $(PROGRAM).xpm
ICO       = favicon.ico

thumb:
	gm convert -size 16x16   $(PNG) -resize 16x16   +profile "*" $(ICON16)
	gm convert -size 22x22   $(PNG) -resize 22x22   +profile "*" $(ICON22)
	gm convert -size 24x24   $(PNG) -resize 24x24   +profile "*" $(ICON24)
	gm convert -size 32x32   $(PNG) -resize 32x32   +profile "*" $(ICON32)
	gm convert -size 48x48   $(PNG) -resize 48x48   +profile "*" $(ICON48)
	gm convert -size 64x64   $(PNG) -resize 64x64   +profile "*" $(ICON64)
	gm convert -size 128x128 $(PNG) -resize 128x128 +profile "*" $(ICON128)
	gm convert -size 256x256 $(PNG) -resize 256x256 +profile "*" $(ICON256)
	gm convert -size 135x135 $(PNG) -resize 135x135 +profile "*" $(ICON135)
	gm convert -size 32x32   $(PNG) -resize 32x32   +profile "*" $(PIXMAP)
	# the ICO file must be made with GIMP (File->Export...)


clean:
	rm -f *~
