1
0
forked from extern/nix-config

Makefile: Add systemd-enable-now target

This commit is contained in:
Donovan Glover 2018-10-27 18:37:47 -04:00
parent 6d4c594b1a
commit 082f64f763
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -37,3 +37,14 @@ uninstall:
.PHONY: prune
prune:
@$(call ${NS_STOW_COMMAND},R)
# ========================
# ======= systemd ========
# ========================
NS_SYSTEMD_SERVICES := ssh-agent urxvtd mpd
.PHONY: systemd-enable-now
systemd-enable-now:
@$(foreach service,${NS_SYSTEMD_SERVICES},systemctl --user enable --now ${service}.service;)
@echo "SUCCESS: Enabled the following services: ${NS_SYSTEMD_SERVICES}"