Skip to content

Commit

Permalink
missing target
Browse files Browse the repository at this point in the history
  • Loading branch information
nishigori committed Oct 19, 2024
1 parent 50c8720 commit 8677154
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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 ~/$@
Expand Down

0 comments on commit 8677154

Please sign in to comment.