-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
Makefile
31 lines (25 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#### Install routine for moonraker-timelapse
####
#### https://github.com/mainsail-crew/moonraker-timelapse
####
#### Copyright 2023 till today
####
#### This file may be distributed under the terms of the GNU GPLv3 license.
####
###############################################################################
####
#### Self documenting Makefile
#### Based on https://www.freecodecamp.org/news/self-documenting-makefile/
#### ##########################################################################
.PHONY: help install uninstall update
.DEFAULT_GOAL := help
install: ## Launch install routine
@bash -c "scripts/install.sh"
uninstall: ## Launch uninstall routine
@bash -c "scripts/uninstall.sh"
update: ## Update moonraker-timelapse
@git fetch && git pull
@printf "Please restart moonraker to take changes effect ...\n"
help: ## Show this help
@printf "Welcome to moonraker-timelapse installer\n"
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'