forked from danvergara/morphos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (34 loc) · 1.34 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
32
33
34
35
36
37
38
39
40
41
HTMX_VERSION=1.9.6
RESPONSE_TARGETS_VERSION=1.9.11
BOOTSTRAP_VERSION=5.3.2
GO_VERSION=1.21.5
.PHONY: run
## run: Runs the air command.
run:
MORPHOS_PORT=8080 air -c .air.toml
.PHONY: download-htmx
## download-htmx: Downloads HTMX minified js file
download-htmx:
curl -o static/htmx.min.js https://unpkg.com/htmx.org@${HTMX_VERSION}/dist/htmx.min.js
.PHONY: download-htmx-resp-targ
## download-htmx-resp-targ: Downloads the HTMX response target extension
download-htmx-resp-targ:
curl -o static/response-targets.js https://unpkg.com/htmx.org@${RESPONSE_TARGETS_VERSION}/dist/ext/response-targets.js
.PHONY: download-bootstrap
## download-bootstrap: Downloads Bootstrap minified css/js file
download-bootstrap:
curl -o static/bootstrap.min.css https://cdn.jsdelivr.net/npm/bootstrap@${BOOTSTRAP_VERSION}/dist/css/bootstrap.min.css
curl -o static/bootstrap.min.js https://cdn.jsdelivr.net/npm/bootstrap@${BOOTSTRAP_VERSION}/dist/js/bootstrap.bundle.min.js
.PHONY: docker-build
## docker-build: Builds the container image
docker-build:
docker build --build-arg="GO_VERSION=${GO_VERSION}" -t morphos .
.PHONY: docker-run
## docker-run: Runs the container
docker-run:
docker run --rm -p 8080:8080 -v /tmp:/tmp morphos
.PHONY: help
## help: Prints this help message
help:
@echo "Usage:"
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /'