~chipaca/unity-lens-video/custom-user-agent

« back to all changes in this revision

Viewing changes to graphics/Makefile

  • Committer: Janos Gyerik
  • Date: 2012-04-04 13:22:47 UTC
  • Revision ID: burlyman@titan2x.com-20120404132247-2s7liq2i4e7nn8ul
minor improvement to create_user_profile signal

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Bash One-Liners graphics generator Makefile v0.1
 
2
# http://bashoneliners.com/
 
3
#
 
4
# Copyright 2012, Janos Gyerik
 
5
# http://bashoneliners.com/LICENSE
 
6
 
7
# Note: requires ImageMagick to resize images
 
8
#
 
9
src_dir:=src
 
10
icons_dir:=../media/icons
 
11
 
 
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
 
15
 
 
16
default: all
 
17
 
 
18
lp launchpad: $(launchpad_target)
 
19
 
 
20
icons: $(icons_target)
 
21
 
 
22
all: launchpad icons
 
23
 
 
24
launchpad/icon.png: $(src_dir)/square.png
 
25
        @mkdir -p $(@D)
 
26
        convert -geometry 14x $< $@
 
27
        identify $@
 
28
 
 
29
launchpad/logo.png: $(src_dir)/square.png
 
30
        @mkdir -p $(@D)
 
31
        convert -geometry 64x $< $@
 
32
        identify $@
 
33
 
 
34
launchpad/brand.png: $(src_dir)/square.png
 
35
        @mkdir -p $(@D)
 
36
        convert -geometry 192x $< $@
 
37
        identify $@
 
38
 
 
39
 
 
40
# eof