forked from cloudposse/build-harness
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (49 loc) · 1.77 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
export BUILD_HARNESS_PATH ?= $(shell 'pwd')
export OS ?= $(shell uname -s | tr '[:upper:]' '[:lower:]')
export SELF ?= $(MAKE)
export PATH := $(BUILD_HARNESS_PATH)/vendor:$(PATH)
export DOCKER_BUILD_FLAGS ?=
# Debug should not be defaulted to a value because some cli consider any value as `true` (e.g. helm)
export DEBUG ?=
ifeq ($(CURDIR),$(realpath $(BUILD_HARNESS_PATH)))
# List of targets the `readme` target should call before generating the readme
export README_DEPS ?= docs/targets.md
export DEFAULT_HELP_TARGET = help/all
endif
# Import Makefiles into current context
include $(BUILD_HARNESS_PATH)/Makefile.*
# include $(BUILD_HARNESS_PATH)/modules/*/bootstrap.Makefile*
# include $(BUILD_HARNESS_PATH)/modules/*/Makefile*
include $(BUILD_HARNESS_PATH)/modules/*/bootstrap.Makefile*
include $(BUILD_HARNESS_PATH)/modules/bash/Makefile*
include $(BUILD_HARNESS_PATH)/modules/compose/Makefile*
include $(BUILD_HARNESS_PATH)/modules/docker/Makefile*
# include $(BUILD_HARNESS_PATH)/modules/docs/Makefile*
include $(BUILD_HARNESS_PATH)/modules/git/Makefile*
include $(BUILD_HARNESS_PATH)/modules/github/Makefile*
include $(BUILD_HARNESS_PATH)/modules/gitleaks/Makefile*
# include $(BUILD_HARNESS_PATH)/modules/helm/Makefile*
# include $(BUILD_HARNESS_PATH)/modules/helmfile/Makefile*
include $(BUILD_HARNESS_PATH)/modules/make/Makefile*
include $(BUILD_HARNESS_PATH)/modules/mono/Makefile*
include $(BUILD_HARNESS_PATH)/modules/readme/Makefile*
all: init deps build install run
deps:
@make mono/deps
build:
@make mono/init
@make mono/build
install:
@echo "Not implemented"
@exit(0)
run:
@echo "Not implemented"
@exit(0)
bash/fmt:
shfmt -l -w $(PWD)
bash/fmt/check:
shfmt -d $(PWD)/rootfs
ifndef TRANSLATE_COLON_NOTATION
%:
@$(SELF) $(subst :,/,$@) TRANSLATE_COLON_NOTATION=false
endif