33 lines
624 B
Makefile
33 lines
624 B
Makefile
|
FILES = ratpoisonrc vimrc Xresources zshrc $(wildcard zfuncs/*) emacs.el \
|
||
|
bashrc bash_completion
|
||
|
|
||
|
ifeq "$(USER)" "gebner"
|
||
|
FILES += muttrc signature.ml 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:
|
||
|
for i in $(FILES) $(XFILES); do diff ~/.$$i $$i; done
|
||
|
|
||
|
procmailrc muttrc: maildirs.m4
|
||
|
muttrc: gpg.rc
|
||
|
|
||
|
%: %.m4
|
||
|
m4 $< >$@
|