-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (23 loc) · 843 Bytes
/
Makefile
File metadata and controls
27 lines (23 loc) · 843 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
PROPERTIES = \
baseModule=Network.Alertmanager.OpenAPI \
cabalPackage=alertmanager-openapi \
cabalVersion=0.0.1.0 \
configType=AlertmanagerClientConfig \
generateLenses=false \
requestType=AlertmanagerRequest \
useKatip=false
# This trick for comma-separated lists is take from:
# https://stackoverflow.com/questions/7525589/create-comma-separated-lists-in-gnu-make
#
# Stack Overflow user content is licensed under CC-BY-SA 4.0. The license
# can be found at:
# https://creativecommons.org/licenses/by-sa/4.0/
null :=
space := $(null) #
comma := ,
generate:
openapi-generator generate \
-i alertmanager/api/v2/openapi.yaml \
--additional-properties $(subst $(space),$(comma),$(strip $(PROPERTIES))) \
--ignore-file-override alertmanager-openapi/.openapi-generator-ignore \
-g haskell-http-client -o alertmanager-openapi/