source: lliurex-artwork-cursors/trunk/fuentes/lliurex-cursor-blink/Makefile @ 65

Last change on this file since 65 was 65, checked in by daduve, 4 years ago

Adding files

File size: 1.0 KB
Line 
1NO_COLOR    = \x1b[0m
2BUILD_COLOR    = \x1b[32;01m
3CLEAN_COLOR    = \x1b[31;01m
4
5
6FILES:=$(patsubst %.svg,%.png,$(wildcard ../svg-blink/*.svg))
7CURSORS:=$(patsubst %.cursor,%,$(wildcard *.cursor))
8BUILD=build
9RENDERCMD=rsvg-convert
10
11
12all: cursorgen
13       
14       
15cursorgen: $(FILES) $(CURSORS)
16       
17       
18        mkdir -p $(BUILD)
19        mv $(CURSORS) $(BUILD)
20       
21        @echo -e '$(BUILD_COLOR)* Creating symlinks...$(NO_COLOR)'
22        ln -s left_ptr $(BUILD)/default
23        ln -s left_ptr $(BUILD)/top_left_arrow
24        ln -s busy $(BUILD)/wait
25        ln -s busy $(BUILD)/watch
26        ln -s busy $(BUILD)/clock
27        ln -s half-busy $(BUILD)/progress
28        ln -s half-busy $(BUILD)/left_ptr_watch
29        ln -s half-busy $(BUILD)/00000000000000020006000e7e9ffc3f
30        ln -s half-busy $(BUILD)/08e8e1c95fe2fc01f976f1e063a24ccd
31
32       
33%: %.cursor
34        @echo -e '$(BUILD_COLOR)* Building [$@]$(NO_COLOR)' 
35        xcursorgen $< $@
36
37%.png : %.svg
38        @echo -e '$(BUILD_COLOR)* Rendering [$@]$(NO_COLOR)' 
39        $(RENDERCMD) $< > $(patsubst ../svg-blink/%.png,%.png,$@)
40       
41       
42clean:
43        @echo -e '$(CLEAN_COLOR)* Cleaning...$(NO_COLOR)' 
44        rm -rf *.png
45        rm -rf $(BUILD)
46       
Note: See TracBrowser for help on using the repository browser.