REPO = git://tremily.us/dotfiles-public.git PACKAGE = dotfiles-public .PHONY : all checkout clean all : unicode_sampler _Xmodmap clean : rm -rf $(PACKAGE) unicode_sampler _Xmodmap $(PACKAGE) : git clone $(REPO) $@ checkout : $(PACKAGE) (cd $(PACKAGE) && git pull && git reset --hard HEAD) _Xmodmap : checkout cp $(PACKAGE:%=%/src/$(@:_%=.%)) $@ unicode_sampler : _Xmodmap gen_sampler.py ./gen_sampler.py $< > $@