File: Makefile

package info (click to toggle)
golang-github-alessio-shellescape 1.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 152 kB
  • sloc: makefile: 18
file content (25 lines) | stat: -rw-r--r-- 351 bytes parent folder | download
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

#!/usr/bin/make -f

VERSION := $(shell git describe)

all: build

build:
	go build -a -v

install:
	go install ./cmd/escargs

escargs: build
	go build -v \
          -ldflags="-X 'main.version=$(VERSION)'" \
          ./cmd/escargs

clean:
	rm -rfv escargs

uninstall:
	rm -v $(shell go env GOPATH)/bin/escargs

.PHONY: build clean install uninstall