forked from submariner-io/shipyard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (26 loc) · 899 Bytes
/
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
ifneq (,$(DAPPER_HOST_ARCH))
# Running in Dapper
CLUSTER_SETTINGS_FLAG = --cluster_settings $(DAPPER_SOURCE)/scripts/cluster_settings
CLUSTERS_ARGS += $(CLUSTER_SETTINGS_FLAG)
DEPLOY_ARGS += $(CLUSTER_SETTINGS_FLAG)
include $(SHIPYARD_DIR)/Makefile.inc
TARGETS := $(shell ls -p scripts | grep -v -e /)
# Add any project-specific arguments here
$(TARGETS):
./scripts/$@
.PHONY: $(TARGETS)
# Project-specific targets go here
validate: vendor/modules.txt
else
# Not running in Dapper
# Shipyard-specific starts
clusters deploy release validate: dapper-image
dapper-image: export SCRIPTS_DIR=./scripts/shared
dapper-image:
$(SCRIPTS_DIR)/build_image.sh -i shipyard-dapper-base -f package/Dockerfile.dapper-base $(dapper_image_flags)
.DEFAULT_GOAL := validate
# Shipyard-specific ends
include Makefile.dapper
endif
# Disable rebuilding Makefile
Makefile Makefile.dapper Makefile.inc: ;