1 BASE_IMAGE
= PostgreSQL_elephant.svg
3 ## PostgreSQL_elephant.svg image by Daniel Lundin
4 ## Copyright © 2019, Daniel Lundin
6 ## Permission to use, copy, modify, and distribute this software and its
7 ## documentation for any purpose, without fee, and without a written
8 ## agreement is hereby granted, provided that the above copyright notice
9 ## and this paragraph and the following two paragraphs appear in all
12 ## IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT,
13 ## INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST
14 ## PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,
15 ## EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
16 ## THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
17 ## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 ## A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS
19 ## IS" BASIS, AND THE AUTHOR HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE,
20 ## SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS
22 ## Obtained via Wikimedia Commons
23 ## https://commons.wikimedia.org/wiki/File:Postgresql_elephant.svg
25 ## Makefile code in this file is copyright (c) 2019, Marcin Cieślak
27 ## Permission is hereby granted, free of charge, to any person obtaining
28 ## a copy of this software and associated documentation files (the
29 ## "Software"), to deal in the Software without restriction, including
30 ## without limitation the rights to use, copy, modify, merge, publish,
31 ## distribute, sublicense, and/or sell copies of the Software, and to
32 ## permit persons to whom the Software is furnished to do so, subject to
33 ## the following conditions:
35 ## The above copyright notice and this permission notice shall be included
36 ## in all copies or substantial portions of the Software.
38 ## THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
39 ## EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
40 ## MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
41 ## IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
42 ## CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
43 ## TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
44 ## SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
47 winicontoppm
-allicons
-writeands
$> f
49 favicon.ico
: icon16.pnm icon32.pnm icon48.pnm \
50 icon16.and.pbm icon32.and.pbm icon48.and.pbm
51 ppmtowinicon
-andpgms \
52 icon16.pnm icon16.and.pbm \
53 icon32.pnm icon32.and.pbm \
54 icon48.pnm icon48.and.pbm
> $@
56 icon16.pnm
: $(BASE_IMAGE
)
57 rsvg-convert
-w
16 -h
16 $> | pngtopnm | pnmdepth
4 > $@
59 icon32.pnm
: $(BASE_IMAGE
)
60 rsvg-convert
-w
32 -h
32 $> | pngtopnm | pnmdepth
4 > $@
62 icon48.pnm
: $(BASE_IMAGE
)
63 rsvg-convert
-w
48 -h
48 $> | pngtopnm | pnmdepth
8 > $@
65 icon16.and.pbm
: $(BASE_IMAGE
)
66 rsvg-convert
-w
16 -h
16 $> | pngtopnm
-alpha
> $@
68 icon32.and.pbm
: $(BASE_IMAGE
)
69 rsvg-convert
-w
32 -h
32 $> | pngtopnm
-alpha
> $@
71 icon48.and.pbm
: $(BASE_IMAGE
)
72 rsvg-convert
-w
48 -h
48 $> | pngtopnm
-alpha
> $@
75 rm -f icon16.pnm icon32.pnm icon48.pnm favicon.ico
76 rm -f icon16.and.pbm icon32.and.pbm icon48.and.pbm
77 rm -f f_and_0.pbm f_and_1.pbm f_and_2.pbm f_xor_0.ppm f_xor_1.ppm f_xor_2.ppm