Changeset 43:bfef0827b171


Ignore:
Timestamp:
Sep 1, 2013, 4:14:43 PM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Message:

Optional optimization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/Makefile

    r36 r43  
    11SOURCES = $(shell find svg -name '*.svg')
    22TARGETS = $(patsubst %.svg,%.png,$(SOURCES))
     3OPTIMIZE = 1
    34
    45all: $(TARGETS)
     
    910%.png: %.svg
    1011        rsvg-convert $< > $@
     12ifeq ($(OPTIMIZE),1)
    1113        optipng -o4 -preserve $@
    1214        advpng -z4 $@
     15endif
Note: See TracChangeset for help on using the changeset viewer.