FILES = ratpoisonrc vimrc Xresources zshrc $(wildcard zfuncs/*) emacs.el \ bashrc bash_completion screenrc ifeq "$(USER)" "gebner" FILES += muttrc gnus.el ssh/config XFILES = xsession ifeq "$(shell hostname)" "marginata" FILES += procmailrc endif endif .PHONY: all install clean check all: $(FILES) $(XFILES) install: $(FILES) $(XFILES) mkdir -p ~/.zfuncs ~/.ssh for i in $(FILES); do install -m0644 $$i ~/.$$i; done for i in $(XFILES); do install -m0755 $$i ~/.$$i; done clean: rm -f procmailrc muttrc check: $(FILES) $(XFILES) for i in $(FILES) $(XFILES); do diff -u ~/.$$i $$i; done procmailrc muttrc: maildirs.m4 muttrc: gpg.rc %: %.m4 m4 $< >$@