33 lines
662 B
Makefile
33 lines
662 B
Makefile
FILES = ratpoisonrc vimrc Xresources zshrc emacs.el gitconfig \
|
|
bashrc bash_completion screenrc commonshrc gnomerc gvimrc
|
|
|
|
ifeq "$(USER)" "gebner"
|
|
FILES += muttrc gnus.el ssh/config
|
|
XFILES =
|
|
|
|
ifeq "$(shell hostname)" "marginata"
|
|
FILES += procmailrc
|
|
endif
|
|
endif
|
|
|
|
.PHONY: all install clean check
|
|
|
|
all: $(FILES) $(XFILES)
|
|
|
|
install: $(FILES) $(XFILES)
|
|
mkdir -p ~/.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 $< >$@
|