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:
parent
c4b7b69f66
commit
e6d88d57ad
6
Makefile
6
Makefile
@ -8,6 +8,8 @@
|
|||||||
# make prune Removes stale links
|
# make prune Removes stale links
|
||||||
|
|
||||||
verbose ?= 2
|
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_REPO_PATH := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||||
NS_STOW_OPTIONS := --dir="${NS_REPO_PATH}" --target="${HOME}" --no-folding --verbose=${verbose}
|
NS_STOW_OPTIONS := --dir="${NS_REPO_PATH}" --target="${HOME}" --no-folding --verbose=${verbose}
|
||||||
NS_STOW_PACKAGES := $(wildcard */)
|
NS_STOW_PACKAGES := $(wildcard */)
|
||||||
@ -38,6 +40,10 @@ uninstall:
|
|||||||
prune:
|
prune:
|
||||||
@$(call ${NS_STOW_COMMAND},R)
|
@$(call ${NS_STOW_COMMAND},R)
|
||||||
|
|
||||||
|
.PHONY: code-extensions
|
||||||
|
code-extensions:
|
||||||
|
@$(foreach extension,${NS_CODE_EXTENSIONS},code --install-extension ${extension} --force;)
|
||||||
|
|
||||||
.PHONY: enable-mpd
|
.PHONY: enable-mpd
|
||||||
enable-mpd:
|
enable-mpd:
|
||||||
@systemctl --user enable --now mpd.service
|
@systemctl --user enable --now mpd.service
|
||||||
|
Loading…
Reference in New Issue
Block a user