Last change
on this file since 340 was
340,
checked in by jrpelegrina, 5 years ago
|
First release to xenial
|
File size:
387 bytes
|
Rev | Line | |
---|
[340] | 1 | NO_COLOR = \x1b[0m |
---|
| 2 | BUILD_COLOR = \x1b[32;01m |
---|
| 3 | CLEAN_COLOR = \x1b[31;01m |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | FILES:=$(patsubst %.svg,%.png,$(wildcard *.svg)) |
---|
| 7 | RENDERCMD=rsvg-convert |
---|
| 8 | |
---|
| 9 | |
---|
| 10 | all: $(FILES) |
---|
| 11 | |
---|
| 12 | %.png : %.svg |
---|
| 13 | @echo -e '$(BUILD_COLOR)* Rendering [$@]$(NO_COLOR)' |
---|
| 14 | $(RENDERCMD) $< > $(patsubst %.png,%.png,$@) |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | clean: |
---|
| 18 | @echo -e '$(CLEAN_COLOR)* Cleaning...$(NO_COLOR)' |
---|
| 19 | rm -rf $(FILES) |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | .PHONY: all clean |
---|
Note: See
TracBrowser
for help on using the repository browser.