-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 1021 Bytes
/
Makefile
File metadata and controls
29 lines (22 loc) · 1021 Bytes
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
RUSTKYLL_VERSION ?= v0.4.6
RUSTKYLL_ASSET ?= rustkyll-linux-amd64
RUSTKYLL_INSTALL_DIR ?= .bin
RUSTKYLL ?= $(RUSTKYLL_INSTALL_DIR)/rustkyll
RUSTKYLL_BUILD_FLAGS ?=
RUSTKYLL_SERVE_FLAGS ?=
.PHONY: help install serve build clean
help: ## Show this help message
@echo "Available targets:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " %-15s %s\n", $$1, $$2}'
install: ## Install dependencies
mkdir -p $(RUSTKYLL_INSTALL_DIR)
curl -fsSL -o $(RUSTKYLL) https://github.com/alexeygrigorev/rustkyll/releases/download/$(RUSTKYLL_VERSION)/$(RUSTKYLL_ASSET)
chmod +x $(RUSTKYLL)
serve: ## Start the development server (http://localhost:4000)
$(RUSTKYLL) serve $(RUSTKYLL_SERVE_FLAGS)
serve-livereload: ## Start the development server with live reload
$(RUSTKYLL) serve --livereload $(RUSTKYLL_SERVE_FLAGS)
build: ## Build the site for production
$(RUSTKYLL) build $(RUSTKYLL_BUILD_FLAGS)
clean: ## Remove generated site and caches
rm -rf _site .rustkyll-manifest.json