forked from mdw-smarty/tobloggan
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 650 Bytes
/
Makefile
File metadata and controls
32 lines (25 loc) · 650 Bytes
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
#!/usr/bin/make -f
test:
go fmt ./...
go mod tidy
go test -cover -timeout=1s -race -count=10 ./...
install: test
go install tobloggan/main/tobloggan
clean:
rm -rf ./docs ./generated
dev:
go run tobloggan/main/tobloggan \
-source content \
-target generated \
-base-url "http://localhost:8000" && \
open "http://localhost:8000/" && \
python3 -m http.server --directory generated
publish: clean
go run tobloggan/main/tobloggan \
-source content \
-target docs \
-base-url "/tobloggan" && \
git add ./docs && \
git commit -m "auto-publish" && \
git push origin master
.PHONY: test install clean dev publish