2008-03-16 21:02:24 +00:00
|
|
|
FILES = ratpoisonrc vimrc Xresources zshrc $(wildcard zfuncs/*) emacs.el \
|
2011-04-30 18:21:21 +00:00
|
|
|
bashrc bash_completion screenrc commonshrc
|
2008-03-16 21:02:24 +00:00
|
|
|
|
|
|
|
ifeq "$(USER)" "gebner"
|
2011-04-29 17:11:36 +00:00
|
|
|
FILES += muttrc gnus.el ssh/config
|
2008-03-16 21:02:24 +00:00
|
|
|
XFILES = xsession
|
|
|
|
|
2011-02-21 15:20:50 +00:00
|
|
|
ifeq "$(shell hostname)" "marginata"
|
2008-03-16 21:02:24 +00:00
|
|
|
FILES += procmailrc
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: all install clean check
|
|
|
|
|
|
|
|
all: $(FILES) $(XFILES)
|
|
|
|
|
|
|
|
install: $(FILES) $(XFILES)
|
2011-04-29 17:12:32 +00:00
|
|
|
mkdir -p ~/.zfuncs ~/.ssh
|
2008-03-16 21:02:24 +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
|
|
|
|
|
2008-03-16 21:25:37 +00:00
|
|
|
check: $(FILES) $(XFILES)
|
2008-03-19 14:36:45 +00:00
|
|
|
for i in $(FILES) $(XFILES); do diff -u ~/.$$i $$i; done
|
2008-03-16 21:02:24 +00:00
|
|
|
|
|
|
|
procmailrc muttrc: maildirs.m4
|
|
|
|
muttrc: gpg.rc
|
|
|
|
|
|
|
|
%: %.m4
|
|
|
|
m4 $< >$@
|