dotfiles/Makefile

26 lines
628 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
2017-01-19 23:18:52 +01:00
# TODO: remove i3 config from default setup. we don't need this on servers
2015-10-24 00:57:07 +02:00
dotfiles:
# add aliases for dotfiles
2018-06-08 19:56:59 +02:00
for file in $(shell find $(CURDIR) -name ".*" -not -name ".gitignore" -not -name ".git" -not -name ".*.swp" -not -name ".*ssh*"); do \
2015-10-24 00:57:07 +02:00
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:
2018-11-12 11:48:41 +01:00
bash ./install.sh base