GO ?= go all: mmfileget mmfileget: main.go mattermost-server vendor $(GO) build -mod=vendor mattermost-server: git clone --depth 1 --branch v5.11.1 https://github.com/mattermost/mattermost-server.git vendor: mattermost-server ln -s mattermost-server/vendor ln -s $(PWD)/mattermost-server vendor/github.com/mattermost/mattermost-server