Makefile 715 B

123456789101112131415161718192021222324
  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
  15. test-runtime:
  16. cp ./cmd/test-runtime/buildpacks/nodejs.buildpack.toml $(BINDIR)/
  17. go build -tags test-runtime -o $(BINDIR)/test-runtime ./cmd/test-runtime