-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (35 loc) · 1.02 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
CHECKOUT ?= main
REPO ?= https://github.com/mrsimonemms/new
.create:
@cruft create ${REPO} --skip=.git --directory ${DIRECTORY} --checkout ${CHECKOUT}
.PHONY: .create
cruft-update:
ifeq (,$(wildcard .cruft.json))
@echo "Cruft not configured"
else
@cruft check || cruft update --skip-apply-ask --refresh-private-variables
endif
.PHONY: cruft-update
.update-precommit:
@cd "${DIRECTORY}" && pre-commit autoupdate
.PHONY: .update-precommit
blank:
@$(MAKE) .create DIRECTORY=blank
.PHONY: blank
golang:
@$(MAKE) .create DIRECTORY=golang
.PHONY: golang
golang-cobra:
@$(MAKE) .create DIRECTORY=golang-cobra
.PHONY: golang-cobra
js:
@$(MAKE) .create DIRECTORY=js
.PHONY: js
precommit-autoupdate:
@$(MAKE) .update-precommit DIRECTORY="blank/{{ cookiecutter.project_name }}"
@$(MAKE) .update-precommit DIRECTORY="golang-cobra/{{ cookiecutter.project_name }}"
@$(MAKE) .update-precommit DIRECTORY="js/{{ cookiecutter.project_name }}"
.PHONY: precommit-autoupdate
terraform:
@$(MAKE) .create DIRECTORY=terraform
.PHONY: terraform