Fix david's email address
[oxy-cursors.git] / Makefile
blob24d1bfcad838c8ea4d6a98472869ea01b96a3403
1 .PHONY: themes tarballs
3 colors=blue yellow brown grey green violet viorange red purple navy sea_blue emerald hot_orange white black
5 themes:
7 tarballs:
9 .colorrules: Makefile
10 -rm .colorrules
11 for color in $(colors); do \
12 for rule in theme-$$color oxygen-cursors-$$color.tar.bz2; do \
13 echo -e "$$rule: .depend\n\t\$$(MAKE) -f Makefile.colors COLOR=$$color $$rule" \
14 >> .colorrules; \
15 done; \
16 echo -e ".PHONY: theme-$$color \nthemes: theme-$$color \ntarballs: oxygen-cursors-$$color.tar.bz2" >> .colorrules; \
17 done
19 .depend: $(patsubst %.in,%.dep,$(wildcard configs/*.in))
20 cat $^ > $@
22 configs/%.dep: configs/%.in
23 echo "cursors/\$$(COLOR)/$(notdir $(patsubst %.in,%,$<)): \$$(addprefix pngs/\$$(COLOR)/,$$(cut -d ' ' -f 4 $< | xargs echo))" > $@
25 include .colorrules