2011-07-28 23:41:01 +00:00
|
|
|
FILES = ratpoisonrc vimrc Xresources zshrc emacs.el gitconfig \
|
2011-07-28 20:05:16 +00:00
|
|
|
bashrc bash_completion screenrc commonshrc gnomerc gvimrc
|
2008-03-16 21:02:24 +00:00
|
|
|
|
2011-07-28 20:05:16 +00:00
|
|
|
ifeq "$(USER)" "gebner"
|
|
|
|
FILES += muttrc gnus.el ssh/config
|
|
|
|
XFILES =
|
2008-03-16 21:02:24 +00:00
|
|
|
|
2011-07-28 20:05:16 +00:00
|
|
|
ifeq "$(shell hostname)" "marginata"
|
|
|
|
FILES += procmailrc
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: all install clean check
|
|
|
|
|
|
|
|
all: $(FILES) $(XFILES)
|
|
|
|
|
|
|
|
install: $(FILES) $(XFILES)
|
2011-07-28 23:40:10 +00:00
|
|
|
mkdir -p ~/.ssh
|
2011-07-28 20:05:16 +00:00
|
|
|
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 $< >$@
|