-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathMakefile
66 lines (47 loc) · 1.18 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
# Copyright 2022 envd Authors.
#
# The old school Makefile, following are required targets. The Makefile is written
# to allow building multiple binaries. You are free to add more targets or change
# existing implementations, as long as the semantics are preserved.
#
# Tweak the variables based on your project.
#
# This repo's root import path (under GOPATH).
ROOT := github.com/tensorchord/envd-docs
# Enable CGO by default.
CGO_ENABLED ?= 1
#
# These variables should not need tweaking.
#
# It's necessary to set this because some environments don't link sh -> bash.
export SHELL := bash
# It's necessary to set the errexit flags for the bash shell.
export SHELLOPTS := errexit
# Build directory.
BUILD_DIR := ./build
#
# Define all targets. At least the following commands are required:
#
# All targets.
.PHONY: generate-cli-ref build dev
init:
@npm i -g pnpm
@pnpm i
generate-cli-ref:
@envd reference --output docs/api/cli/cli.md
generate-api-ref:
@python hack/api/render.py
build:
@pnpm build
build-zh:
@pnpm build:zh
dev:
@pnpm dev
dev-zh:
@pnpm dev:zh
lintmd:
@pnpm prettier --check "**/*.md"
prettiermd:
@pnpm prettier --write "**/*.md"
clean:
@-rm -rf hack/api/docs