diff --git a/Makefile b/Makefile index 515837b..91e1b60 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ secrets := $(subst .example/,/.,$(wildcard .secrets.example/*)) rc_files := $(wildcard .*rc) .luarc.json .wezterm.lua .tmux.conf links := $(rc_files) $(wildcard .config/*) .zsh .vim .secrets .gitconfig config_moves := $(wildcard *.config.toml) -dir_requires := .secrets \ +dir_requires := \ $(addprefix $(HOME)/, src bin tmp .config .cache/terraform .local/bin) \ $(addprefix $(HOME)/.cache/vim/, undo swap backup unite view) \ $(if $(huge), $(addprefix $(HOME)/, Dropbox)) @@ -72,6 +72,7 @@ config_move: $(patsubst %.config.toml, ~/.config/%/config.toml, $(config_moves)) cp $< $@ $(secrets): + @mkdir -p $@ # NOTE: do not including $(dir_requires) cause duplicated in $(links) $(if $(wildcard $@),, cp $(@D).example/$(subst .,,$(@F)) $@) @ln -sf $(CURDIR)/$@ ~/ @ls -dF ~/$@