Skip to content

Commit 6f6c1f0

Browse files
Update make files
1 parent a6d2f56 commit 6f6c1f0

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
.PHONY: schema ci
2-
default: help
2+
default: run
33

4-
help:
4+
help:
55
@echo "Targets:"
66
@echo "--------"
77
@echo "schema Generates the JSON schema"
8-
@echo "ci Builds the site"
8+
@echo "run Runs the site"
9+
@echo "ci Builds the site (for CI)"
910

1011
init:
1112
@echo "Initializing..."
@@ -17,5 +18,8 @@ schema: init
1718
@tsp compile ./typespec --output-dir ./.artifacts
1819
@mv ./.artifacts/@typespec/json-schema/OpenCLI.json ./schema.json
1920

21+
run: init
22+
@cd site && make run
23+
2024
ci: init
2125
@cd site && make ci

site/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
.PHONY: build ci
22
default: run
33

4+
help:
5+
@echo "Targets:"
6+
@echo "--------"
7+
@echo "update Syncs the OpenCLI spec with the site"
8+
@echo "run Runs the site"
9+
@echo "ci Builds the site (for CI)"
10+
411
update:
512
@echo "Updating contents..."
613
@./update.sh

0 commit comments

Comments
 (0)