1
0
forked from extern/nix-config

Makefile: Add code-extensions target

Now it is possible to run `make code-extensions` to install all the
extensions I use for the editor Code.
This commit is contained in:
Donovan Glover 2018-11-17 15:10:51 -05:00
parent c4b7b69f66
commit e6d88d57ad
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -8,6 +8,8 @@
# make prune Removes stale links
verbose ?= 2
NS_CODE_EXTENSIONS := dbaeumer.vscode-eslint EditorConfig.EditorConfig faustinoaq.crystal-lang \
naumovs.color-highlight PKief.material-icon-theme vscodevim.vim
NS_REPO_PATH := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
NS_STOW_OPTIONS := --dir="${NS_REPO_PATH}" --target="${HOME}" --no-folding --verbose=${verbose}
NS_STOW_PACKAGES := $(wildcard */)
@ -38,6 +40,10 @@ uninstall:
prune:
@$(call ${NS_STOW_COMMAND},R)
.PHONY: code-extensions
code-extensions:
@$(foreach extension,${NS_CODE_EXTENSIONS},code --install-extension ${extension} --force;)
.PHONY: enable-mpd
enable-mpd:
@systemctl --user enable --now mpd.service