Skip to content

Instantly share code, notes, and snippets.

@sebbekarlsson
Created December 28, 2020 06:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebbekarlsson/28e55a3a410b619c69aa1b605a48e8f6 to your computer and use it in GitHub Desktop.
Save sebbekarlsson/28e55a3a410b619c69aa1b605a48e8f6 to your computer and use it in GitHub Desktop.
example of Makefile
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