dotfiles/Makefile

25 lines
526 B
Makefile
Raw Normal View History

2015-10-24 00:57:07 +02:00
.PHONY: all default dotfiles install
2016-03-15 16:08:00 +01:00
all: bin dotfiles
2015-10-24 00:57:07 +02:00
default: install
install: all
dotfiles:
# add aliases for dotfiles
for file in $(shell find $(CURDIR) -name ".*" -not -name ".gitignore" -not -name ".git" -not -name ".*.swp"); do \
f=$$(basename $$file); \
ln -sfn $$file $(HOME)/$$f; \
done
2016-03-15 16:08:00 +01:00
bins:
# add aliases for things in bin
for file in $(shell find $(CURDIR)/bin -type f -not -name ".*.swp"); do \
f=$$(basename $$file); \
sudo ln -sf $$file /usr/local/bin/$$f; \
done
bootstrap:
sh ./install.sh