Hello guys,
I'd like some assistance in understanding some aspect of the Makefile for this project. Specifically I'm trying to figure out how the makefile generates the platform
executable which resides in $(DIST_ROOT)/mattermost/bin/
directory of the mattermostdocker_app_1
container. This executable is utilised in the app/docker-entry.sh script.
To keep this short, I can see where the code that creates the binary is located, but I can't seem to trace how this target is called. The code is under the package:
target
package:
...
@# Make osx package
@# Copy binary
cp $(GOPATH)/bin/darwin_amd64/platform $(DIST_PATH)/bin
@# Package
tar -C dist -czf $(DIST_PATH)-$(BUILD_TYPE_NAME)-osx-amd64.tar.gz mattermost
but neither make run
or make test
depend on this target, so I was wondering how/when the above code is executed?
i.e
run --> run-server, run-client
run-server --> prepare-enterprise, start-docker
prepare-enterprise --> _
start-docker --> _
run-client --> _
thanks
@crspeller @jasonblais