NO_COLOR = \x1b[0m BUILD_COLOR = \x1b[32;01m CLEAN_COLOR = \x1b[31;01m FILES:=$(patsubst %.svg,%.png,$(wildcard ../svg/*.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 right_ptr $(BUILD)/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 ln -s help $(BUILD)/question_arrow ln -s xterm $(BUILD)/text ln -s xterm $(BUILD)/ibeam ln -s move $(BUILD)/dnd-move ln -s fleur $(BUILD)/size_all ln -s copy $(BUILD)/dnd-copy ln -s cross $(BUILD)/crosshair ln -s dnd-none $(BUILD)/dnd-no-drop ln -s hand $(BUILD)/pointing_hand ln -s hand $(BUILD)/pointer ln -s hand $(BUILD)/hand1 ln -s hand $(BUILD)/hand2 ln -s hand $(BUILD)/e29285e634086352946a0e7090d73106 ln -s size_hor $(BUILD)/028006030e0e7ebffc7f7070c0600140 ln -s size_hor $(BUILD)/sb_h_double_arrow ln -s size_ver $(BUILD)/00008160000006810000408080010102 ln -s size_ver $(BUILD)/sb_v_double_arrow ln -s grab $(BUILD)/closehand ln -s grab_open $(BUILD)/openhand ln -s left_ptr $(BUILD)/top_left_arrow %: %.cursor @echo -e '$(BUILD_COLOR)* Building [$@]$(NO_COLOR)' xcursorgen $< $@ %.png : %.svg @echo -e '$(BUILD_COLOR)* Rendering [$@]$(NO_COLOR)' $(RENDERCMD) $< > $(patsubst ../svg/%.png,%.png,$@) clean: @echo -e '$(CLEAN_COLOR)* Cleaning...$(NO_COLOR)' rm -rf *.png rm -rf $(BUILD)