summaryrefslogtreecommitdiff
path: root/Makefile
blob: 8767571fffd21d6dd7bb2a08cd674719e34e482f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
ifndef HOME
$(error "$$HOME" must be defined)
endif

DOTFILES := $(shell find dot -type f -not -name '.*')

DESTINATIONS = $(DOTFILES:dot/%=${HOME}/.%)

$(HOME)/.%: dot/%
	install -D -m 0644 $< $@

install: $(DESTINATIONS)