forked from openshift/cloud-ingress-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (40 loc) · 1.33 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
include boilerplate/generated-includes.mk
SHELL := /usr/bin/env bash
# Extend Makefile after here
CONTAINER_ENGINE?=docker
# Needed for build-catalog-image
CATALOG_REGISTRY_ORGANIZATION?=app-sre
# TODO: Remove once app-interface config is updated
.PHONY: build
build: docker-build
@echo "$@ success!"
# TODO: Remove once app-interface and prow config is updated
.PHONY: gobuild
gobuild: go-build
@echo "$@ success!"
# Build the docker image
# TODO: Remove below target once prow config is updated
.PHONY: container-build
container-build: docker-build
@echo "$@ success!"
# Push the docker image
# TODO: Remove below target once prow config is updated
.PHONY: container-push
container-push: docker-push
@echo "$@ success!"
# TODO: Remove below target once prow config is updated
.PHONY: operator-sdk-generate
operator-sdk-generate: generate
@echo "$@ success!"
# TODO: Removed once standardized in boilerplate
.PHONY: generate-syncset
generate-syncset:
if [ "${IN_CONTAINER}" == "true" ]; then \
$(CONTAINER_ENGINE) pull quay.io/app-sre/python:3 && $(CONTAINER_ENGINE) tag quay.io/app-sre/python:3 python:3 || true; \
$(CONTAINER_ENGINE) run --rm -v `pwd -P`:`pwd -P` python:3 /bin/sh -c "cd `pwd`; pip install oyaml; `pwd`/${GEN_SYNCSET}"; \
else \
${GEN_SYNCSET}; \
fi
.PHONY: boilerplate-update
boilerplate-update:
@boilerplate/update