-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (36 loc) · 1.31 KB
/
Makefile
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
THIS_FILE := $(lastword $(MAKEFILE_LIST))
SHELL := /bin/bash
.PHONY: build
################
# PRE-REQUISITS
build:
docker-compose -f src/main/docker/docker-compose.yml build
##############
# ENVIRONMENT
confluence.start:
docker-compose -p docs -f src/main/docker/docker-compose.yml up -d confluence
confluence.logs:
docker-compose -p docs -f src/main/docker/docker-compose.yml logs -f confluence
confluence.stop:
docker-compose -p docs -f src/main/docker/docker-compose.yml up -d confluence
confluence.clean:
docker-compose -p docs -f src/main/docker/docker-compose.yml down
########################
# BUILDING & PUBLISHING
# Builds the assets: python diagrams and/or puml
doc.publishAssets:
source .github/docPublishingScripts.sh && buildAssets
# Publishes to Confluence
# WARNING: Please fill in credentials in .env-confluence
doc.publishToConfluence: doc.publishAssets
source .github/docPublishingScripts.sh && publishConfluence
# Builds PDF book
doc.publishToPDF: doc.publishAssets
source .github/docPublishingScripts.sh && publishPDF
# Builds PDF book
doc.publishToHTML: doc.publishAssets
source .github/docPublishingScripts.sh && publishHTML
# Clean caches
doc.clean:
rm -rf $(CURDIR)/build
# docker run --rm -v $(CURDIR):/docs alpine rm -rf /docs/build