-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (29 loc) · 978 Bytes
/
Makefile
File metadata and controls
36 lines (29 loc) · 978 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
28
29
30
31
32
33
34
35
36
NAME = terminology
VERSION = $(shell grep -oP '(?<=version = ")[^"]*' pyproject.toml)
DIST = docs
.PHONY: clean deploy serve help
help:
@echo "Usage: make <target>"
@echo ""
@echo "Targets:"
@echo " build Build FHIR artifacts into docs/ (runs oo-codes)"
@echo " serve Serve docs/ on http://localhost:8000 (simulates GitHub Pages)"
@echo " dist Build Python distribution packages"
@echo " deploy Build dist and upload to PyPI with twine"
@echo " clean Remove generated files from docs/ (preserves CNAME) and .pyc/.egg-info"
@echo " help Show this help message"
build:
oo-codes
serve:
@echo "Serving docs/ at http://localhost:8000 (simulates GitHub Pages)"
@echo "Press Ctrl+C to stop."
python3 -m http.server 8000 --directory docs
dist:
python3 -m build
deploy: dist
twine upload $(DIST)/*
clean:
find $(DIST) -mindepth 1 ! -name 'CNAME' -delete
find . -name '*.pyc' -delete
find . -name '*.egg-info' -delete
rm -rf *.egg-info