Skip to content

Commit c0c3cc3

Browse files
authored
Fix build.sh to not rely on default Makefile target (#164)
Before this, calling `make` would get the "check-licenses" target instead of the "build" target it was written to use.
1 parent 6c09f32 commit c0c3cc3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

apm-lambda-extension/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ endif
1515

1616
export AWS_FOLDER GOARCH ARCHITECTURE
1717

18+
.PHONY: all
19+
all: build
20+
1821
check-licenses:
1922
go install github.com/elastic/go-licenser@v0.4.0
2023
go run github.com/elastic/go-licenser@v0.4.0 -d .

apm-lambda-extension/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/sh
22

33
# build the go extension, and then zip up
4-
make && cd bin && zip -r extension.zip extensions
4+
make all && cd bin && zip -r extension.zip extensions
55

66
# then run this command with amazon stuff exported
77

88
# AWS_ACCESS_KEY_ID='' AWS_SECRET_ACCESS_KEY='' \
99
# aws lambda publish-layer-version \
1010
# --layer-name "apm-lambda-extension" \
1111
# --region us-west-2 \
12-
# --zip-file "fileb://extension.zip"
12+
# --zip-file "fileb://extension.zip"

0 commit comments

Comments
 (0)