NO_COLOR = \x1b[0m BUILD_COLOR = \x1b[32;01m CLEAN_COLOR = \x1b[31;01m FILES:=$(patsubst %.svg,%.png,$(wildcard *.svg)) CURSORS:=$(patsubst %.cursor,%,$(wildcard *.cursor)) all: $(FILES) $(CURSORS) @echo -e '$(CLEAN_COLOR)* DEBUG:$(NO_COLOR)$(FILES)' @echo -e '$(BUILD_COLOR)* DEBUG:$(NO_COLOR)$(FILES)' mkdir -p cursors mv $(CURSORS) cursors @echo -e '$(BUILD_COLOR)* Creating symlinks...$(NO_COLOR)' ln -s left_ptr cursors/default ln -s right_ptr cursors/arrow ln -s busy cursors/wait ln -s busy cursors/watch ln -s busy cursors/clock ln -s half-busy cursors/progress ln -s half-busy cursors/left_ptr_watch ln -s half-busy cursors/00000000000000020006000e7e9ffc3f ln -s half-busy cursors/08e8e1c95fe2fc01f976f1e063a24ccd ln -s help cursors/question_arrow ln -s xterm cursors/text ln -s xterm cursors/ibeam ln -s move cursors/dnd-move ln -s fleur cursors/size_all ln -s copy cursors/dnd-copy ln -s cross cursors/crosshair ln -s dnd-none cursors/dnd-no-drop ln -s hand cursors/pointing_hand ln -s hand cursors/pointer ln -s hand cursors/hand1 ln -s hand cursors/hand2 ln -s hand cursors/e29285e634086352946a0e7090d73106 ln -s size_hor cursors/028006030e0e7ebffc7f7070c0600140 ln -s size_hor cursors/sb_h_double_arrow ln -s size_ver cursors/00008160000006810000408080010102 ln -s size_ver cursors/sb_v_double_arrow ln -s grab cursors/closehand ln -s grab_open cursors/openhand ln -s left_ptr cursors/top_left_arrow %: %.cursor @echo -e '$(BUILD_COLOR)* Building [$@]$(NO_COLOR)' xcursorgen $< $@ %.png : %.svg @echo -e '$(BUILD_COLOR)* Building [$@]$(NO_COLOR)' rsvg $< $@ clean: @echo -e '$(CLEAN_COLOR)* Cleaning...$(NO_COLOR)' rm -rf $(FILES) rm -rf cursors