Makefile 561 B

1234567891011121314151617181920
  1. BINDIR := $(CURDIR)/bin
  2. VERSION ?= dev
  3. start-dev: install setup-env-files
  4. bash ./scripts/dev-environment/StartDevServer.sh
  5. run-migrate-dev: install setup-env-files
  6. bash ./scripts/dev-environment/RunMigrateDev.sh
  7. install:
  8. bash ./scripts/dev-environment/SetupEnvironment.sh
  9. setup-env-files:
  10. bash ./scripts/dev-environment/CreateDefaultEnvFiles.sh
  11. build-cli:
  12. go build -ldflags="-w -s -X 'github.com/porter-dev/porter/cli/cmd.Version=${VERSION}'" -a -tags cli -o $(BINDIR)/porter ./cli
  13. build-cli-dev:
  14. go build -tags cli -o $(BINDIR)/porter ./cli