-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (34 loc) · 1.01 KB
/
Makefile
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
all: natto karashi negi
again: clean all
natto: natto.go gemini/gemini.go spartan/spartan.go cmd/natto/main.go
go build -C cmd/natto -o ../../natto
karashi: natto.go gemini/gemini.go cmd/karashi/main.go
go build -C cmd/karashi -o ../../karashi
negi: natto.go gemini/gemini.go cmd/negi/main.go
go build -C cmd/negi -o ../../negi
clean:
rm -f natto karashi negi
test:
go test -cover -coverpkg ./gemini,./spartan
cover:
go test -coverpkg ./gemini,./spartan -coverprofile=cover.out
go tool cover -html cover.out
cert:
openssl genrsa -out /etc/ssl/private/gemini.key 2048
openssl req -new -key /etc/ssl/private/gemini.key \
-out /etc/ssl/gemini.csr
openssl x509 -req -days 2500000 \
-in /etc/ssl/gemini.csr -signkey /etc/ssl/private/gemini.key \
-out /etc/ssl/gemini.crt
install:
install natto /usr/local/bin
push:
got send
git push github
fmt:
gofmt -s -w *.go */*.go cmd/*/*.go
README.md: README.gmi
sisyphus -f markdown <README.gmi >README.md
doc: README.md
release: push
git push github --tags