Fix link naming, check for pacman on system
This commit is contained in:
parent
3be9aa5a10
commit
f9f11b15a1
4
Makefile
4
Makefile
|
@ -35,7 +35,7 @@ clean:
|
||||||
home: $(HOME_TARGETS)
|
home: $(HOME_TARGETS)
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
pacman -T - < pkglist.txt || sudo pacman --needed -S - < pkglist.txt
|
command -v pacman > /dev/null 2>&1 && { pacman -T - < pkglist.txt || sudo pacman --needed -S - < pkglist.txt }
|
||||||
|
|
||||||
config: $(CONFIG_TARGETS) $(TPM_DIR)
|
config: $(CONFIG_TARGETS) $(TPM_DIR)
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ $(CONFIG_TARGETS): $(CONFIG_DIR)/%: config/%
|
||||||
$(ZSH_TARGETS): $(ZSH_CUSTOM_DIR)/%.zsh: ohmyzsh/%.zsh
|
$(ZSH_TARGETS): $(ZSH_CUSTOM_DIR)/%.zsh: ohmyzsh/%.zsh
|
||||||
$(SSH_TARGETS): $(SSH_DIR)/%: ssh/%
|
$(SSH_TARGETS): $(SSH_DIR)/%: ssh/%
|
||||||
$(HOME_TARGETS) $(CONFIG_TARGETS) $(ZSH_TARGETS) $(SSH_TARGETS):
|
$(HOME_TARGETS) $(CONFIG_TARGETS) $(ZSH_TARGETS) $(SSH_TARGETS):
|
||||||
ln -s $(PWD)/$? $$(dirname $@)
|
ln -s $(PWD)/$? $@
|
||||||
|
|
||||||
$(PACKER_DIR):
|
$(PACKER_DIR):
|
||||||
git clone --depth 1 $(PACKER_REPO) $@
|
git clone --depth 1 $(PACKER_REPO) $@
|
||||||
|
|
Loading…
Reference in a new issue