-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (20 loc) · 669 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (20 loc) · 669 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
DOCKER_IMAGE = code-notes
DEV_PORT = 8000
PWD_DIR = $(shell pwd)
.DEFAULT_GOAL := help
dev:
@echo "Starting the development server on port $(DEV_PORT)..."
@docker build -t $(DOCKER_IMAGE) .
@docker run --rm -it -p $(DEV_PORT):$(DEV_PORT) -v $(PWD_DIR):/docs $(DOCKER_IMAGE)
build:
@echo "Building the documentation..."
@docker build -t $(DOCKER_IMAGE) .
@docker run --rm -v $(PWD_DIR):/docs $(DOCKER_IMAGE) build
help:
@echo "Usage: make [target]"
@echo
@echo "Available targets:"
@echo " dev - Start the development server"
@echo " build - Build the documentation"
@echo " help - Show this help message (default)"
.PHONY: dev build help