File: Makefile

package info (click to toggle)
golang-github-miekg-mmark 1.3.6%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 616 kB
  • sloc: makefile: 35
file content (10 lines) | stat: -rw-r--r-- 192 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
GITHASH:=$(shell git rev-parse --short HEAD)

all: mmark

mmark: ../*.go
	go build -ldflags "-X main.githash=$(GITHASH)" -a -tags netgo -installsuffix netgo

.PHONY: clean
clean:
	rm -f mmark