forked from anna-ssg/anna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (28 loc) · 575 Bytes
/
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
all:
@make build
build:
@echo "anna: building site"
@go build
@./anna
serve:
@echo "anna: serving site"
@go build
@./anna -s "site/"
wizard:
@echo "anna: running wizard"
@go build
@./anna -w
tests:
@echo "anna: running all tests"
@go test ./...
bench:
@echo "anna: running benchmark"
@go test -bench . -benchmem -cpuprofile pprof.cpu
@#to profile anna, run "go tool pprof app.test pprof.cpu"
clean:
@echo "bash: purging site/rendered and test output"
@rm -rf site/rendered
@#cleaning test output
@cd test/
@rm -rf `find . -type d -name rendered`
@cd ../