From e591fcf3d8c61c3df7d1d8457ae7b72bfe3abf1b Mon Sep 17 00:00:00 2001 From: Jesse Hallam Date: Thu, 17 May 2018 22:24:49 -0400 Subject: fix `make run-server` (#8819) * fix `make run-server` The `PLATFORM_FILES` environment variable no longer gives `go run` the necessary context to run the mattermost binary. * clean up cmd/mattermost/cprofile*.out --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c87e4f304..a7d6c3e82 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,7 @@ GO_LINKER_FLAGS ?= -ldflags \ # GOOS/GOARCH of the build host, used to determine whether we're cross-compiling or not BUILDER_GOOS_GOARCH="$(shell $(GO) env GOOS)_$(shell $(GO) env GOARCH)" -PLATFORM_FILES="./cmd/mattermost/" +PLATFORM_FILES="./cmd/mattermost/main.go" # Output paths DIST_ROOT=dist @@ -504,6 +504,7 @@ clean: stop-docker ## Clean up everything except persistant server data. rm -f *.test rm -f imports/imports.go rm -f cmd/platform/cprofile*.out + rm -f cmd/mattermost/cprofile*.out nuke: clean clean-docker ## Clean plus removes persistant server data. @echo BOOM -- cgit v1.2.3-1-g7c22