makefile: konsolidiere dev — nur 'make dev' (alle kurse, port 1312), per-course dev-targets + _PORT vars raus
This commit is contained in:
13
CLAUDE.md
13
CLAUDE.md
@@ -37,11 +37,13 @@ build/ # Generated output (gitignored)
|
||||
## Build Commands
|
||||
|
||||
Unified per-course pattern: `make <target>-<course>`. Group targets without
|
||||
suffix run for all courses.
|
||||
suffix run for all courses. Single dev server serves all courses.
|
||||
|
||||
```bash
|
||||
# Per-course (replace <c> with course id: 223015b, 223015c, dhbw)
|
||||
make dev-<c> # Live server (HMR) on per-course port
|
||||
# Dev (all courses, single port)
|
||||
make dev # Live server (HMR), port 1312
|
||||
|
||||
# Per-course build/deploy (replace <c> with course id: 223015b, 223015c, dhbw)
|
||||
make build-<c> # Build HTML + PDF
|
||||
make html-<c> # HTML only
|
||||
make pdf-<c> # PDF only
|
||||
@@ -49,17 +51,14 @@ make klausur-<c> # Extract klausur slides (HdM only)
|
||||
make deploy-<c> # Build + deploy single course (ASK FIRST!)
|
||||
|
||||
# All courses
|
||||
make dev # Combined dev server (port 1312, all courses)
|
||||
make build # Build everything
|
||||
make html / pdf # HTML / PDF only
|
||||
make klausur # Extract klausur (HdM courses only)
|
||||
make deploy # Deploy everything (ASK FIRST!)
|
||||
```
|
||||
|
||||
Per-course ports: `223015b` → 1313, `223015c` → 1314, `dhbw` → 1315.
|
||||
|
||||
**Adding a new course:** add id to `COURSES` in Makefile + define `<id>_NAME`,
|
||||
`<id>_KAPITEL`, `<id>_DEPLOY`, `<id>_PORT`, `<id>_KLAUSUR`. No new targets needed.
|
||||
`<id>_KAPITEL`, `<id>_DEPLOY`, `<id>_KLAUSUR`. No new targets needed.
|
||||
|
||||
## Nix Flake Commands
|
||||
|
||||
|
||||
Reference in New Issue
Block a user