File: Makefile

package info (click to toggle)
tml 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 168 kB
  • sloc: makefile: 16
file content (19 lines) | stat: -rw-r--r-- 474 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

default: build

build: test
	mkdir -p bin
	go build ./tml/ -o bin/tml 

build-travis: test
	mkdir -p bin/linux-amd64/tml
	mkdir -p bin/darwin-amd64/tml
	GOOS=linux  GOARCH=amd64 go build -o bin/linux-amd64/tml  -ldflags "-X github.com/liamg/tml/version.Version=${TRAVIS_TAG}" ./tml
	GOOS=darwin GOARCH=amd64 go build -o bin/darwin-amd64/tml -ldflags "-X github.com/liamg/tml/version.Version=${TRAVIS_TAG}" ./tml

test:
	go vet ./...
	go test -v ./...

.PHONY: build test