From: Michael Tremer Date: Tue, 17 Mar 2026 17:11:45 +0000 (+0000) Subject: Makefile: Let rsvg-convert generate the final SVGs X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2aa2c720c14460ea685e7e927e79e53588e9a215;p=artwork.git Makefile: Let rsvg-convert generate the final SVGs These files are much more compact and not so busy with unnecessary stuff that Inkscape generates. Signed-off-by: Michael Tremer --- diff --git a/Makefile b/Makefile index 4f6868e..5632d64 100644 --- a/Makefile +++ b/Makefile @@ -72,22 +72,7 @@ endef all: $(OBJECTS) # Converts the logo to a plain SVG file without requiring the font -standard/logo.svg: logo.svg - $(TO_PATHS) - -%/logo.svg: logo-%.svg - $(TO_PATHS) - -standard/logo-square.svg: logo-square.svg - $(TO_PATHS) - -%/logo-square.svg: logo-square-%.svg - $(TO_PATHS) - -standard/favicon.svg: favicon.svg - $(TO_PATHS) - -%/favicon.svg: favicon-%.svg +%-standalone.svg: %.svg $(TO_PATHS) # Converts the logo to PDF @@ -95,6 +80,22 @@ standard/favicon.svg: favicon.svg mkdir -p $(dir $@) rsvg-convert --format=pdf1.7 $< > $@ +standard/logo.svg: logo-standalone.svg + mkdir -p $(dir $@) && \ + $(RSVG_CONVERT) --format=svg $< > $@ + +%/logo.svg: logo-%-standalone.svg + mkdir -p $(dir $@) && \ + $(RSVG_CONVERT) --format=svg $< > $@ + +standard/logo-square.svg: logo-square-standalone.svg + mkdir -p $(dir $@) && \ + $(RSVG_CONVERT) --format=svg $< > $@ + +%/logo-square.svg: logo-square-%-standalone.svg + mkdir -p $(dir $@) && \ + $(RSVG_CONVERT) --format=svg $< > $@ + # Converts the logo to PNG %/logo-512.png: %/logo.svg mkdir -p $(dir $@) && \ @@ -129,6 +130,15 @@ standard/favicon.svg: favicon.svg mkdir -p $(dir $@) && \ $(RSVG_CONVERT) --format=png --width=4096 $< > $@ +# Converts the favicon to SVG +standard/favicon.svg: favicon-standalone.svg + mkdir -p $(dir $@) && \ + $(RSVG_CONVERT) --format=svg --background-color="#$(WHITE)" $< > $@ + +%/favicon.svg: favicon-%-standalone.svg + mkdir -p $(dir $@) && \ + $(RSVG_CONVERT) --format=svg --background-color="#$(WHITE)" $< > $@ + # Converts the favicon to PNG %/favicon-16x16.png: %/favicon.svg mkdir -p $(dir $@) && \