-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
90 lines (80 loc) · 2.47 KB
/
Makefile
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#
# Copyright (C) 2016-2022 CASM Organization <https://casm-lang.org>
# All rights reserved.
#
# Developed by: Philipp Paulweber et al.
# <https://github.com/casm-lang/casm-lang.logo/graphs/contributors>
#
# This file is part of casm-lang.logo.
#
# casm-lang.logo 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.
#
# casm-lang.logo 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 casm-lang.logo. If not, see <http://www.gnu.org/licenses/>.
#
OBJ = obj
KIND = icon
KIND += logo
KIND += rect
KIND += badge
KIND += badge_bw
KIND += badge_wb
KIND += banner
KIND += qrcode
KIND += twitter_bg
KIND += sticker
KIND += slogan
KIND += slogan_bw
KIND += slogan_wb
SOURCES = $(KIND:%=src/%.svg)
SIZE = 32
SIZE += 48
SIZE += 64
SIZE += 96
SIZE += 128
SIZE += 150
SIZE += 192
SIZE += 256
SIZE += 300
SIZE += 384
SIZE += 512
SIZE += 600
SIZE += 768
SIZE += 1024
SIZE += 1200
SIZE += 2048
EXPORT = $(SIZE:%=$(OBJ)/icon/%.png) $(OBJ)/icon.pdf
EXPORT += $(SIZE:%=$(OBJ)/logo/%.png) $(OBJ)/logo.pdf
EXPORT += $(SIZE:%=$(OBJ)/rect/%.png) $(OBJ)/rect.pdf
EXPORT += $(SIZE:%=$(OBJ)/badge/%.png) $(OBJ)/badge.pdf
EXPORT += $(SIZE:%=$(OBJ)/badge_bw/%.png) $(OBJ)/badge_bw.pdf
EXPORT += $(SIZE:%=$(OBJ)/badge_wb/%.png) $(OBJ)/badge_wb.pdf
EXPORT += $(SIZE:%=$(OBJ)/banner/%.png) $(OBJ)/banner.pdf
EXPORT += $(SIZE:%=$(OBJ)/qrcode/%.png) $(OBJ)/qrcode.pdf
EXPORT += $(SIZE:%=$(OBJ)/sticker/%.png) $(OBJ)/sticker.pdf
EXPORT += $(SIZE:%=$(OBJ)/slogan/%.png) $(OBJ)/slogan.pdf
EXPORT += $(SIZE:%=$(OBJ)/slogan_bw/%.png) $(OBJ)/slogan_bw.pdf
EXPORT += $(SIZE:%=$(OBJ)/slogan_wb/%.png) $(OBJ)/slogan_wb.pdf
EXPORT += $(SIZE:%=$(OBJ)/twitter_bg/%.png)
EXPORT += etc/headline.png
default: $(EXPORT)
%.png: $(SOURCES)
@mkdir -p `dirname $@`
@echo
@echo $@
@inkscape -C -h `basename $@ .png` --export-filename $@ src/`basename \`dirname $@\``.svg
%.pdf: $(SOURCES)
@mkdir -p `dirname $@`
@echo
@echo $@
@inkscape -A $@ src/`basename $@ .pdf`.svg
etc/headline.png: $(OBJ)/rect/64.png
cp -f $< $@