source: zero-lliurex-installers/trunk/fuentes/rsrc/Makefile

Last change on this file was 7898, checked in by hectorgh, 16 months ago

fixed dimensions and dpi settings

File size: 796 bytes
Line 
1NO_COLOR    = \x1b[0m
2BUILD_COLOR    = \x1b[32;01m
3CLEAN_COLOR    = \x1b[31;01m
4
5
6FILES:=$(patsubst %.svg,%.png,$(wildcard *.svg))
7DIRS:=$(wildcard ../*)
8       
9all: $(FILES)
10
11%.png : %.svg
12        @echo -e '$(BUILD_COLOR)* Rendering [$@]$(NO_COLOR)' 
13        inkscape $< -z --export-dpi=96 -e=$@ 2>/dev/null
14
15        case "$(patsubst %.png,%.install,$@)" in zero-lliurex-recursos-*) if [ ! -e ../$(patsubst %.png,%.install,$@) ];then ln -s zero-lliurex-recursos.install ../$(patsubst %.png,%.install,$@); fi ;; esac
16        @echo -e '$(BUILD_COLOR)* Copying $@ to ../$(patsubst %.png,%.install,$@)/usr/share/banners/lliurex-neu/$(NO_COLOR)' 
17        cp $@ ../$(patsubst %.png,%.install,$@)/usr/share/banners/lliurex-neu/
18       
19clean:
20        @echo -e '$(CLEAN_COLOR)* Cleaning...$(NO_COLOR)'
21        rm -rf $(patsubst %.svg,%.png,$(wildcard *.svg))
22       
23       
Note: See TracBrowser for help on using the repository browser.