etc/Makefile
2011-07-28 22:05:16 +02:00

33 lines
683 B
Makefile

FILES = ratpoisonrc vimrc Xresources zshrc $(wildcard zfuncs/*) emacs.el \
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 ~/.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 $< >$@