-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add make commands (release-2.7) (#2488)
Signed-off-by: Philipp Rudloff <philipp.rudloff@konghq.com>
- Loading branch information
Philipp Rudloff
authored
Apr 24, 2024
1 parent
cbca7d0
commit be68aad
Showing
5 changed files
with
51 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
SHELL := /usr/bin/env bash | ||
|
||
## make help: if you're aren't sure use `make help` | ||
include mk/help.mk | ||
include mk/install.mk | ||
include mk/build.mk |
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,7 @@ | ||
.PHONY: build | ||
build: | ||
yarn run build | ||
|
||
.PHONY: build/sync | ||
build/sync: | ||
make build |
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,15 @@ | ||
.PHONY: help | ||
help: ## Display this help screen | ||
@# Display top-level targets since they are the ones most developers will need. | ||
@grep -h -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort -k1 | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
@# Now show hierarchical targets in separate sections. | ||
@grep -h -E '^[a-zA-Z0-9_-]+/[a-zA-Z0-9/_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \ | ||
awk '{print $$1}' | \ | ||
awk -F/ '{print $$1}' | \ | ||
sort -u | \ | ||
while read section ; do \ | ||
echo; \ | ||
grep -h -E "^$$section/[^:]+:.*?## .*$$" $(MAKEFILE_LIST) | sort -k1 | \ | ||
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' ; \ | ||
done | ||
|
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,19 @@ | ||
.PHONY: install | ||
install: | ||
yarn install | ||
|
||
.PHONY: install/sync | ||
install/sync: | ||
make install | ||
|
||
.PHONY: clean-install | ||
clean-install: | ||
yarn install --frozen-lockfile | ||
|
||
.PHONY: clean-install/sync | ||
clean-install/sync: | ||
make clean-install | ||
|
||
.PHONY: clean | ||
clean: ## Delete all node_modules directories | ||
find . -name 'node_modules' -type d -prune -exec rm -rf '{}' + |