etc/conf/Makefile

33 lines
639 B
Makefile
Raw Normal View History

FILES = ratpoisonrc vimrc Xresources zshrc $(wildcard zfuncs/*) emacs.el \
bashrc bash_completion
ifeq "$(USER)" "gebner"
2008-03-16 21:25:37 +00:00
FILES += muttrc gnus.el
XFILES = xsession
2011-02-21 15:20:50 +00:00
ifeq "$(shell hostname)" "marginata"
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
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
procmailrc muttrc: maildirs.m4
muttrc: gpg.rc
%: %.m4
m4 $< >$@