-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
144 lines (119 loc) · 3.16 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
tool:=podman
capability_models_path=./src/capability-models/
site_path=./src/fidlit.app/
ghcr_token_file_path:=../GITHUB_TOKEN_FIDLIT_PACKAGES_RW
.DEFAULT_GOAL:=all
# NOTE: Do not defer to project `all` since `install`
# is a little different in the root.
.PHONY: all
all: containers init check install
.PHONY: init
init:
@cd $(site_path) \
&& "$(MAKE)" $@
.PHONY: check
check:
@cd $(site_path) \
&& "$(MAKE)" $@
.PHONY: update
update:
@cd $(site_path) \
&& "$(MAKE)" $@
.PHONY: fidlit-app
fidlit-app:
@cd $(site_path) \
&& "$(MAKE)" all
@echo 'Recreating the ./docs/ distribution...' \
&& rm -rf ./docs/ \
&& mkdir ./docs/ \
&& cp -r $(site_path)dist/* ./docs/ \
&& echo 'Successfully recreated the ./docs/ distribution.'
.PHONY: install
install: fidlit-app
.PHONY: search-index
search-index:
@cd $(site_path) \
&& "$(MAKE)" $@
.PHONY: start
start:
@cd $(site_path) \
&& "$(MAKE)" $@
.PHONY: dev
dev:
@cd $(site_path) \
&& "$(MAKE)" $@
.PHONY: clean
clean:
@cd $(capability_models_path) \
&& "$(MAKE)" $@
@cd $(site_path) \
&& "$(MAKE)" $@
.PHONY: clean-reset
clean-reset:
@cd $(site_path) \
&& "$(MAKE)" $@
.PHONY: ws
ws:
@code -r $(site_path)fidlit-app.code-workspace
.PHONY: containers-node
containers-node:
@cd ./src/containers/node/ \
&& "$(MAKE)" install
.PHONY: containers-node-chrome
containers-node-chrome:
@cd ./src/containers/node-chrome/ \
&& "$(MAKE)" install
.PHONY: containers-cypress-chrome
containers-cypress-chrome:
@cd ./src/containers/node-cypress-chrome/ \
&& "$(MAKE)" install
.PHONY: containers
containers: containers-node containers-node-chrome containers-cypress-chrome
.PHONY: capability-models
capability-models: container-node
@cd $(capability_models_path) \
&& "$(MAKE)" install
@echo '' && echo 'Copying capability model distribution files to application...'
@cp \
$(capability_models_path)dist/airline-industry-capabilities.json \
$(site_path)src/api/examples/industries/airlines/capabilities.json
@cp \
$(capability_models_path)dist/aerospace-and-defense-industry-capabilities.json \
$(site_path)src/api/examples/industries/aerospace-and-defense/capabilities.json
@cp \
$(capability_models_path)dist/automotive-industry-capabilities.json \
$(site_path)src/api/examples/industries/automotive/capabilities.json
@cp \
$(capability_models_path)dist/banking-industry-capabilities.json \
$(site_path)src/api/examples/industries/banking/capabilities.json
@cp \
$(capability_models_path)dist/broadcasting-industry-capabilities.json \
$(site_path)src/api/examples/industries/broadcasting/capabilities.json
@echo '' && echo 'Successfully copyied capability model distribution files to application.'
.PHONY: sync
sync:
@git-town sync
.PHONY: pr
pr:
@git-town new-pull-request
.PHONY: main
main:
@git sync
@git checkout main
@git sync
@git prune-branches
.PHONY: login-ghcr
login-ghcr:
ifndef username
$(error Missing required argument "username")
endif
@cat $(ghcr_token_file_path) | $(tool) login ghcr.io -u $(username) --password-stdin
# kept for posterity
# .PHONY: create
# create:
# @npx @ionic/cli start \
# fidlit.app \
# blank \
# --type=angular \
# --no-git
# output moved to "./src/fidlit.app