forked from emissary-ingress/emissary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (31 loc) · 1.47 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
# Sanitize the environment a bit.
unexport ENV # bad configuration mechansim
unexport BASH_ENV # bad configuration mechansim, but CircleCI insists on it
unexport CDPATH # should not be exported, but some people do
unexport IFS # should not be exported, but some people do
# In the days before Bash 2.05 (April 2001), Bash had a hack in it
# where it would load the interactive-shell configuration when run
# from sshd, I guess to work around buggy sshd implementations that
# didn't run the shell as login or interactive or something like that.
# But that hack was removed in Bash 2.05 in 2001. And the changelog
# indicates that the heuristics it used to decide whether to do that
# were buggy to begin with, and it would often trigger when it
# shouldn't. BUT DEBIAN PATCHES BASH TO ADD THAT HACK BACK IN! And,
# more importantly, Ubuntu 20.04 (which our CircleCI uses) inherits
# that patch from Debian. And the heuristic that Bash uses
# incorrectly triggers inside of Make in our CircleCI jobs! So, unset
# SSH_CLIENT and SSH2_CLIENT to disable that.
unexport SSH_CLIENT
unexport SSH2_CLIENT
NAME ?= ambassador
OSS_HOME := $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST)))))
include $(OSS_HOME)/builder/builder.mk
include $(OSS_HOME)/_cxx/envoy.mk
$(call module,ambassador,$(OSS_HOME))
include $(OSS_HOME)/build-aux-local/generate.mk
include $(OSS_HOME)/build-aux-local/lint.mk
# Configure GNU Make itself
SHELL = bash
.SECONDARY:
.DELETE_ON_ERROR:
.PHONY: FORCE