1
# Bash One-Liners graphics generator Makefile v0.1
2
# http://bashoneliners.com/
4
# Copyright 2012, Janos Gyerik
5
# http://bashoneliners.com/LICENSE
7
# Note: requires ImageMagick to resize images
10
icons_dir:=../media/icons
12
names:=$(patsubst $(src_dir)/%,%,$(wildcard $(src_dir)/*.png $(src_dir)/*.jpg))
13
icons_target:=$(patsubst %,$(icons_dir)/%,$(names))
14
launchpad_target:=launchpad/icon.png launchpad/logo.png launchpad/brand.png
18
lp launchpad: $(launchpad_target)
20
icons: $(icons_target)
24
launchpad/icon.png: $(src_dir)/square.png
26
convert -geometry 14x $< $@
29
launchpad/logo.png: $(src_dir)/square.png
31
convert -geometry 64x $< $@
34
launchpad/brand.png: $(src_dir)/square.png
36
convert -geometry 192x $< $@