-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 928 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (27 loc) · 928 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
37
.PHONY: sync_hibob_api_reference extract_openapi generate_client \
generate_commands generate build agent_schema install clean
# Full reproducible pipeline: sync docs -> extract -> codegen -> build -> schema
generate: sync_hibob_api_reference extract_openapi generate_client generate_commands build agent_schema
sync_hibob_api_reference:
python3 scripts/sync_hibob_api_reference.py
extract_openapi:
python3 scripts/extract_openapi.py
generate_client:
bash scripts/generate_client.sh
generate_commands:
python3 scripts/generate_commands.py
build:
go build -o hibob ./cmd/hibob/
agent_schema:
./hibob agent-schema
INSTALL_DIR ?= /usr/local/bin
install: build
@install -d $(INSTALL_DIR)
install -m 755 hibob $(INSTALL_DIR)/hibob
@echo "Installed: $(INSTALL_DIR)/hibob"
clean:
rm -f hibob
rm -f api/openapi.json
rm -f api/agent-schema.json
rm -f internal/api/*.gen.go
rm -f internal/commands/*.gen.go