Mercurial > projects > booket
comparison Makefile @ 17:8445c729ba97
Add logo and favicon
author | Guido Berhoerster <guido+booket@berhoerster.name> |
---|---|
date | Mon, 29 Sep 2014 22:39:17 +0200 |
parents | a1a934adff8d |
children | 58f3589982ea |
comparison
equal
deleted
inserted
replaced
16:64272f2105da | 17:8445c729ba97 |
---|---|
19 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | 19 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
20 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | 20 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
21 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 21 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
22 # | 22 # |
23 | 23 |
24 RSVG_CONVERT := rsvg-convert | |
24 SCOUR := scour | 25 SCOUR := scour |
25 XMLLINT := xmllint | 26 XMLLINT := xmllint |
26 | 27 |
27 SVGIMAGES := missing-favicon.svg | 28 SVGIMAGES := missing-favicon.svg booket-logo.svg |
29 PNGIMAGES := booket-favicon.png | |
28 | 30 |
29 .DEFAULT_TARGET = all | 31 .DEFAULT_TARGET = all |
30 | 32 |
31 .PHONY: all clean clobber | 33 .PHONY: all clean clobber |
32 | 34 |
33 all: $(SVGIMAGES) | 35 all: $(SVGIMAGES) $(PNGIMAGES) |
34 | 36 |
35 %.svg: %.src.svg | 37 %.svg: %.src.svg |
36 $(SCOUR) --quiet -i $< --create-groups --enable-id-stripping \ | 38 $(SCOUR) --quiet -i $< --create-groups --enable-id-stripping \ |
37 --enable-comment-stripping --remove-metadata \ | 39 --enable-comment-stripping --remove-metadata \ |
38 --no-renderer-workaround --strip-xml-prolog --enable-viewboxing \ | 40 --no-renderer-workaround --strip-xml-prolog --enable-viewboxing \ |
39 --set-precision=5 | $(XMLLINT) --format --noblanks --output $@ - | 41 --set-precision=5 | $(XMLLINT) --format --noblanks --output $@ - |
40 | 42 |
43 %.png: %.src.svg | |
44 $(RSVG_CONVERT) -o $@ $< | |
45 | |
41 clean: | 46 clean: |
42 rm -f $(SVGIMAGES) | 47 rm -f $(SVGIMAGES) $(PNGIMAGES) |
43 | 48 |
44 clobber: clean | 49 clobber: clean |