generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Furkat Gofurov <furkat.gofurov@suse.com>
- Loading branch information
1 parent
8a314f3
commit 4c2a5ac
Showing
9 changed files
with
194 additions
and
448 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Directories. | ||
BIN_DIR := bin | ||
BIN_DIR_ABS := $(abspath $(BIN_DIR)) | ||
SHARE_DIR := share | ||
|
||
MDBOOK_EXTRACT_COMMAND := tar xfvz $(SHARE_DIR)/mdbook.tar.gz -C bin | ||
MDBOOK_ARCHIVE_EXT := .tar.gz | ||
|
||
MDBOOK_VERSION := v0.4.5 | ||
|
||
# Tooling binaries. | ||
$(BIN_DIR): | ||
mkdir -p $@ | ||
|
||
$(SHARE_DIR): | ||
mkdir -p $@ | ||
|
||
# Binaries. | ||
MDBOOK := $(BIN_DIR)/mdbook | ||
MDBOOK_SHARE := $(SHARE_DIR)/mdbook$(MDBOOK_ARCHIVE_EXT) | ||
$(MDBOOK): $(BIN_DIR) $(SHARE_DIR) | ||
curl -sL -o $(MDBOOK_SHARE) "https://github.com/rust-lang/mdBook/releases/download/$(MDBOOK_VERSION)/mdBook-$(MDBOOK_VERSION)-x86_64-$(RUST_TARGET)$(MDBOOK_ARCHIVE_EXT)" | ||
$(MDBOOK_EXTRACT_COMMAND) | ||
chmod +x $@ | ||
touch -m $@ | ||
|
||
MDBOOK_EMBED := $(BIN_DIR)/mdbook-embed | ||
$(MDBOOK_EMBED): $(BIN_DIR) go.mod go.sum | ||
go build -tags=tools -o $(BIN_DIR)/mdbook-embed sigs.k8s.io/cluster-api/hack/tools/mdbook/embed | ||
|
||
MDBOOK_RELEASELINK := $(BIN_DIR)/mdbook-releaselink | ||
$(MDBOOK_RELEASELINK): $(BIN_DIR) go.mod go.sum | ||
go build -tags=tools -o $(BIN_DIR)/mdbook-releaselink sigs.k8s.io/cluster-api/hack/tools/mdbook/releaselink | ||
|
||
MDBOOK_TABULATE := $(BIN_DIR)/mdbook-tabulate | ||
$(MDBOOK_TABULATE): $(BIN_DIR) go.mod go.sum | ||
go build -tags=tools -o $(BIN_DIR)/mdbook-tabulate sigs.k8s.io/cluster-api/hack/tools/mdbook/tabulate | ||
|
||
.PHONY: clean | ||
clean: ## Remove all tools | ||
rm -rf bin | ||
rm -rf share |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.