~porcellis/t

ref: structure t/Makefile -rw-r--r-- 351 bytes
76f0d055 — Pedro Lucas Porcellis Generate a simple and nice doc 1 year, 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PKGNAME = git.sr.ht/~porcellis/t
GOPATH = $(realpath .go)
PKGPATH = .go/src/$(PKGNAME)

all: t

.go:
		mkdir -p $(dir $(PKGPATH))
		ln -fTrs $(realpath .) $(PKGPATH)

doc:
	gzip -c docs/t.1 > docs/t.1.gz

t: .go
	env GOPATH=$(GOPATH) go build -o $@ ./main.go

get: .go
	env GOPATH=$(GOPATH) go get -d ./...

clean:
	rm -rf t

.PHONY:
	t get clean doc