NO_COLOR = \x1b[0m BUILD_COLOR = \x1b[32;01m CLEAN_COLOR = \x1b[31;01m FILES:=$(patsubst %.svg,%.png,$(wildcard ../svg-blink/*.svg)) CURSORS:=$(patsubst %.cursor,%,$(wildcard *.cursor)) BUILD=build RENDERCMD=rsvg-convert all: cursorgen cursorgen: $(FILES) $(CURSORS) mkdir -p $(BUILD) mv $(CURSORS) $(BUILD) @echo -e '$(BUILD_COLOR)* Creating symlinks...$(NO_COLOR)' ln -s left_ptr $(BUILD)/default ln -s left_ptr $(BUILD)/top_left_arrow ln -s busy $(BUILD)/wait ln -s busy $(BUILD)/watch ln -s busy $(BUILD)/clock ln -s half-busy $(BUILD)/progress ln -s half-busy $(BUILD)/left_ptr_watch ln -s half-busy $(BUILD)/00000000000000020006000e7e9ffc3f ln -s half-busy $(BUILD)/08e8e1c95fe2fc01f976f1e063a24ccd %: %.cursor @echo -e '$(BUILD_COLOR)* Building [$@]$(NO_COLOR)' xcursorgen $< $@ %.png : %.svg @echo -e '$(BUILD_COLOR)* Rendering [$@]$(NO_COLOR)' $(RENDERCMD) $< > $(patsubst ../svg-blink/%.png,%.png,$@) clean: @echo -e '$(CLEAN_COLOR)* Cleaning...$(NO_COLOR)' rm -rf *.png rm -rf $(BUILD)