33 lines
630 B
Makefile
33 lines
630 B
Makefile
FILES = ratpoisonrc vimrc Xresources zshrc $(wildcard zfuncs/*) emacs.el \
|
|
bashrc bash_completion
|
|
|
|
ifeq "$(USER)" "gebner"
|
|
FILES += muttrc gnus.el
|
|
XFILES = xsession
|
|
|
|
ifeq "$(shell hostname)" "www"
|
|
FILES += procmailrc
|
|
endif
|
|
endif
|
|
|
|
.PHONY: all install clean check
|
|
|
|
all: $(FILES) $(XFILES)
|
|
|
|
install: $(FILES) $(XFILES)
|
|
mkdir -p ~/.zfuncs
|
|
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 ~/.$$i $$i; done
|
|
|
|
procmailrc muttrc: maildirs.m4
|
|
muttrc: gpg.rc
|
|
|
|
%: %.m4
|
|
m4 $< >$@
|