etc/conf/Makefile

33 lines
677 B
Makefile
Raw Normal View History

FILES = ratpoisonrc vimrc Xresources zshrc $(wildcard zfuncs/*) emacs.el \
2011-04-30 18:21:21 +00:00
bashrc bash_completion screenrc commonshrc
ifeq "$(USER)" "gebner"
2011-04-29 17:11:36 +00:00
FILES += muttrc gnus.el ssh/config
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)
2011-04-29 17:12:32 +00:00
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
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 $< >$@