GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — code-generator/Makefile at main · kanopy-platform/code-generator

Expand file tree

/

Makefile

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
32 lines (25 loc) · 1.06 KB
/

Makefile

Copy path

File metadata and controls

32 lines (25 loc) · 1.06 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
GO_MODULE := $(shell git config --get remote.origin.url | grep -o 'github\.com[:/][^.]*' | tr ':' '/')
CMD_NAME := kanopy-codegen
VERSION := $(shell grep '^const Version =' internal/version/version.go | cut -d\" -f2)
RUN ?= .*
PKG ?= ./...
.PHONY: test
test: ## Run tests in local environment
golangci-lint run --timeout=5m $(PKG)
go test -short -cover -run=$(RUN) $(PKG)
.PHONY: build
build:
go build -o ./bin/ ./cmd/kanopy-codegen
.PHONY: dist
dist: ## Cross compile binaries into ./dist/
mkdir -p bin dist
GOOS=linux GOARCH=amd64 go build -o ./bin/$(CMD_NAME) ./cmd/$(CMD_NAME)/
tar -zcvf dist/$(CMD_NAME)-linux-$(VERSION).tgz ./bin/$(CMD_NAME) README.md
GOOS=darwin GOARCH=amd64 go build -o ./bin/$(CMD_NAME) ./cmd/$(CMD_NAME)/
tar -zcvf dist/$(CMD_NAME)-macos-$(VERSION).tgz ./bin/$(CMD_NAME) README.md
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: install-dirty
install-dirty:
go build -o ${GOPATH}/bin/kanopy-codegen-dirty ./cmd/$(CMD_NAME)/
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.