]> git.ipfire.org Git - ipfire-logos.git/blobdiff - icons/Makefile
Re-export Adobe Illustrator image as SVG.
[ipfire-logos.git] / icons / Makefile
index 76ec5ffcf51bf4ba5df17de6aa661cf0c522e42d..62e4525218a3a2e2c3bf978d06c29344768c2b0f 100644 (file)
@@ -12,23 +12,20 @@ RESOLUTIONS = 16x16 32x32 48x48 64x64 96x96 128x128 256x256 512x512
 ICONS = $(foreach res,$(RESOLUTIONS),$(ICON_NAME)-$(res).png)
 
 ICON_KERNEL = kernel-logo.ppm
-ICON_EPS = ../objects/ipfire-icon.eps
-ICON_PNM = $(patsubst %.eps,%.pnm,$(ICON_EPS))
-ICON_SVG = $(patsubst %.eps,%.svg,$(ICON_EPS))
+ICON_SVG = ../objects/ipfire-icon.svg
+ICON_PNM = $(patsubst %.svg,%.pnm,$(ICON_SVG))
 
 all: $(ICON_KERNEL) $(ICON_SVG) $(ICONS)
 
-$(ICON_SVG): $(ICON_EPS)
-       convert $< $@
-
 # Create a PNG icon file for each resolution.
-$(ICONS): $(ICON_EPS)
+$(ICONS): $(ICON_SVG)
        convert -resize $(patsubst $(ICON_NAME)-%.png,%,$@) \
-               -transparent white \
+               -background none \
                $< $@
 
-$(ICON_PNM): $(ICON_EPS)
+$(ICON_PNM): $(ICON_SVG)
        convert \
+               -background black \
                -resize 80x80 \
                -compress none \
                $< $@
@@ -66,4 +63,4 @@ install: $(ICON_KERNEL) $(ICONS)
        cp -vfl $(ICON_KERNEL) $(DESTDIR)$(PREFIX)/share/pixmaps/kernel-logo.ppm
 
 clean:
-       rm -vf $(ICONS) $(ICON_KERNEL) $(ICON_PNM) $(ICON_SVG)
+       rm -vf $(ICONS) $(ICON_KERNEL) $(ICON_PNM)