blob: 691e8a9bd6740dda5618f16d9e2d588f66dd4329 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
ifndef HOME
$(error "$$HOME" must be defined)
endif
DOTFILES := $(shell find dot \( -type f -o -type l \) -not -name '.*')
DESTINATIONS = $(DOTFILES:dot/%=${HOME}/.%)
${HOME}/.gitconfig:
./src/gitconfig.sh
EXECUTABLES = $(filter dot/local/bin/%, $(DOTFILES))
$(HOME)/.%: dot/%
install -D -m $(if $(filter $<, $(EXECUTABLES)), 0755, 0644) $< $@
install: $(DESTINATIONS)
|