From e6d88d57adf06a6cc5e36d4d2b4195c2c4c4f689 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 17 Nov 2018 15:10:51 -0500 Subject: [PATCH] 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. --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 06d9de3..db1dae0 100644 --- a/Makefile +++ b/Makefile @@ -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