diff options
author | Andrew Cady <d@jerkface.net> | 2015-10-04 02:17:51 +0200 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2015-10-04 02:17:51 +0200 |
commit | e9d31338b23ac114ca3e759527c7bbe6a10c4c79 (patch) | |
tree | ee9bec0ee0de86f225cf8f8124cf3e87ca375958 /Makefile | |
parent | 36e3285d0e1f9265ffd1a57062afa93d25731921 (diff) |
install all files under dot/
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,12 +1,12 @@ | |||
1 | DOTFILES = profile | 1 | DOTFILES := $(shell find dot -type f) |
2 | 2 | ||
3 | ifndef HOME | 3 | ifndef HOME |
4 | $(error "$$HOME" must be defined) | 4 | $(error "$$HOME" must be defined) |
5 | endif | 5 | endif |
6 | 6 | ||
7 | DESTINATIONS = $(DOTFILES:%=${HOME}/.%) | 7 | DESTINATIONS = $(DOTFILES:dot/%=${HOME}/.%) |
8 | 8 | ||
9 | $(HOME)/.%: % | 9 | $(HOME)/.%: dot/% |
10 | install -m 0644 $< $@ | 10 | install -m 0644 $< $@ |
11 | 11 | ||
12 | install: $(DESTINATIONS) | 12 | install: $(DESTINATIONS) |