Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (50 loc) · 2.05 KB
/
Copy pathMakefile
File metadata and controls
60 lines (50 loc) · 2.05 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
PYTHON ?= .venv/bin/python
.PHONY: help dev-bootstrap run test migrate frontend-install frontend-dev frontend-build
help:
@echo "Available targets:"
@echo " make run Run the Django dev server on :8888"
@echo " make test Run backend tests (pytest)"
@echo " make migrate Apply database migrations"
@echo " make frontend-install npm install in ./frontend"
@echo " make frontend-dev Vite dev server on :5173"
@echo " make frontend-build Production build to frontend/dist"
@echo " make dev-bootstrap Fetch/install devcontainer base layer"
@echo " make dev-bootstrap OVERLAY=<url> Bootstrap with a company overlay"
@echo " make dev-help Show all devcontainer commands"
run:
$(PYTHON) manage.py runserver 8888
test:
$(PYTHON) -m pytest
migrate:
$(PYTHON) manage.py migrate
frontend-install:
cd frontend && npm install
frontend-dev:
cd frontend && npm run dev
frontend-build:
cd frontend && npm run build
# Bootstrap target — always available even before base/ exists
# Usage: make dev-bootstrap [OVERLAY=<overlay-repo-url>]
dev-bootstrap:
@bash .devcontainer/innoclaude ensure
ifdef OVERLAY
@echo "Applying company overlay..."
@python3 .devcontainer/base/scripts/overlay/install_overlay.py "$(OVERLAY)"
@bash .devcontainer/innoclaude ensure
endif
# dev-help stub: shows bootstrap instructions when base/ is not yet installed.
# Once base/ exists, the real dev-help from dev-container.mk takes over via -include.
ifneq ($(wildcard .devcontainer/base/mk/dev-container.mk),)
else
.PHONY: dev-help
dev-help:
@echo ""
@echo " The base layer is not installed yet."
@echo ""
@echo " make dev-bootstrap Fetch and install the base layer"
@echo " make dev-bootstrap OVERLAY=<url> Bootstrap with a company overlay"
@echo ""
endif
# DevContainer targets (wildcard picks up all base .mk files)
-include .devcontainer/base/mk/dev-*.mk
-include .devcontainer/base/mk/features/dev-*.mk