| 1 |
include ../../Makefile.Common |
| 2 |
|
| 3 |
.PHONY: ocb |
| 4 |
ocb: |
| 5 |
CGO_ENABLED=0 $(GOCMD) build -trimpath -o ../../bin/ocb_$(GOOS)_$(GOARCH) . |
| 6 |
|
| 7 |
# Generate the default build config from otelcorecol, by removing the |
| 8 |
# "replaces" stanza, which is assumed to be at the end of the file. |
| 9 |
# |
| 10 |
# The default config file is checked in so that `go install` will work |
| 11 |
# and so that non-unix builds don't need sed to be installed. |
| 12 |
.PHONY: config |
| 13 |
config: internal/config/default.yaml |
| 14 |
sed '-e/replaces:/,$$d' <../otelcorecol/builder-config.yaml > internal/config/default.yaml |