Created
December 28, 2020 06:10
-
-
Save sebbekarlsson/28e55a3a410b619c69aa1b605a48e8f6 to your computer and use it in GitHub Desktop.
example of Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DIR=$(HOME)/.name_day/ | |
SERVICE_FILE=my_application.service | |
SERVICE_DIR=/lib/systemd/system/$(SERVICE_FILE) | |
install: | |
mkdir -p $(DIR) | |
cp ./$(SERVICE_FILE) $(SERVICE_DIR) | |
systemctl daemon-reload | |
start: | |
systemctl start $(SERVICE_FILE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment