-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
38 lines (26 loc) · 1.04 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
# Makefile variables.
SHELL = /bin/bash
# Misc.
TOPDIR = $(shell git rev-parse --show-toplevel)
BIN_DIR = bin
# Request-yo-racks.
RYR_PROJECTS = api docs infra web charts
default: setup
help: # Display help
@awk -F ':|##' \
'/^[^\t].+?:.*?##/ {\
printf "\033[36m%-30s\033[0m %s\n", $$1, $$NF \
}' $(MAKEFILE_LIST) | sort
apply-labels:
# echo $(RYR_PROJECTS) | xargs -n 1 -I {} node_modules/.bin/glm -u request-yo-racks import request-yo-racks:{} third-party/github/labels.json
echo $(RYR_PROJECTS) | xargs -n 1 -I {} ./bin/labeler apply -r request-yo-racks/{} third-party/github/labels.yaml
bootstrap-osx: ## Setup an OSX environment
@cd bootstrap && bash bootstrap-osx.sh
bootstrap-osx-extras: ## Install OSX extra packages
@cd bootstrap && bash bootstrap-osx-extras.sh
clean: ## Remove unwanted files in project (!DESTRUCTIVE!)
cd $(TOPDIR) && git clean -ffdx && git reset --hard
labeler:
@bash tools/labeler-install.sh
setup: labeler ## Setup the full environment
.PHONY: apply-labels clean docs github-label-manager help labeler setup