-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (21 loc) · 690 Bytes
/
Copy pathMakefile
File metadata and controls
26 lines (21 loc) · 690 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
all:
@echo "No target specified. Available targets:"
@echo " caddy: Build Caddy with the Shoreline plugin."
@echo " ui: Build the UI."
@echo " clean: Clean up build artifacts."
caddy: caddy-shoreline/go.mod caddy-shoreline/shorelinelogger.go
@echo "Building Caddy..."
@xcaddy build v2.9.1 --with github.com/Matts/shoreline/caddy-shoreline=./caddy-shoreline
@echo "Caddy build complete."
ui/.next/build-manifest.json:
@echo "Building UI..."
@cd ui && npm install && npm run build
@echo "UI build complete."
ui: ui/.next/build-manifest.json
@echo "Built..."
clean:
@echo "Cleaning up..."
@rm -rf ui/.next
@rm -rf caddy
@echo "Clean complete."
.PHONY: all ui clean help