Changeset 231:eba98879f47f


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

Avoid indirection in Makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/Makefile

    r48 r231  
    11SOURCES = $(shell find images -name '*.svg')
    2 TARGETS = $(patsubst %.svg,%.png,$(SOURCES))
     2TARGETS = $(patsubst %.svg,../data/%.png,$(SOURCES))
    33OPTIMIZE = 1
    44
    55all: $(TARGETS)
    66
    7 install: $(TARGETS)
    8         set -ex; \
    9         for fn in $(TARGETS); do \
    10                 mkdir -p ../data/"$$(dirname $$fn)"; \
    11                 cp $$fn ../data/$$fn; \
    12         done
    13 
    147clean:
    158        rm -f $(TARGETS)
    169
    17 %.png: %.svg
     10../data/%.png: %.svg
     11        mkdir -p $(dir $@)
    1812        inkscape --export-png $@ --export-dpi 9 $<
    1913ifeq ($(OPTIMIZE),1)
Note: See TracChangeset for help on using the changeset viewer.