generated from NHSDigital/nhs-notify-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
74 lines (58 loc) · 2.52 KB
/
Makefile
File metadata and controls
74 lines (58 loc) · 2.52 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# This file is for you! Edit it to implement your own hooks (make targets) into
# the project as automated steps to be executed on locally and in the CD pipeline.
include scripts/init.mk
# ==============================================================================
# Example CI/CD targets are: dependencies, build, publish, deploy, clean, etc.
quick-start: config clean build serve-docs # Quick start target to setup, build and serve docs @Pipeline
dependencies:: # Install dependencies needed to build and test the project @Pipeline
$(MAKE) -C src/cloudevents install
$(MAKE) -C src/eventcatalogasyncapiimporter install
$(MAKE) -C utils/py-utils install
$(MAKE) -C utils/py-mock-mesh install
$(MAKE) -C lambdas/mesh-acknowledge install
$(MAKE) -C lambdas/mesh-poll install
$(MAKE) -C lambdas/mesh-download install
$(MAKE) -C lambdas/report-sender install
./scripts/set-github-token.sh
npm install --workspaces
$(MAKE) generate
dependencies-docs:: # Install documentation dependencies @Pipeline
$(MAKE) -C docs install
build: dependencies-docs # Build the project artefact @Pipeline
$(MAKE) -C docs build
generate: # Generate any autogenerated output @Pipeline
npm run generate-dependencies
debug:
$(MAKE) -C docs debug
publish: # Publish the project artefact @Pipeline
# TODO: Implement the artefact publishing step
deploy: # Deploy the project artefact to the target environment @Pipeline
# TODO: Implement the artefact deployment step
clean:: # Clean-up project resources (main) @Operations
$(MAKE) -C docs clean && \
$(MAKE) -C src/cloudevents clean && \
$(MAKE) -C src/eventcatalogasyncapiimporter clean && \
$(MAKE) -C src/eventcatalogasyncapiimporter clean-output && \
$(MAKE) -C lambdas/mesh-acknowledge clean && \
$(MAKE) -C utils/py-utils clean && \
$(MAKE) -C lambdas/mesh-poll clean && \
$(MAKE) -C lambdas/mesh-download clean && \
$(MAKE) -C lambdas/report-sender clean && \
$(MAKE) -C utils/py-mock-mesh clean && \
$(MAKE) -C src/python-schema-generator clean && \
rm -f .version
npm run clean
config:: _install-dependencies version dependencies # Configure development environment (main) @Configuration
serve-docs:
$(MAKE) -C docs s
version:
rm -f .version
make version-create-effective-file dir=.
echo "{ \"schemaVersion\": 1, \"label\": \"version\", \"message\": \"$$(head -n 1 .version 2> /dev/null || echo unknown)\", \"color\": \"orange\" }" > version.json
# ==============================================================================
${VERBOSE}.SILENT: \
build \
clean \
config \
generate \
deploy \