forked from alphagov/government-service-design-manual
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (24 loc) · 906 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
29
30
.PHONY: clean aspell test lint help
help:
@echo "Please use 'make <target>' where <target> is one of"
@echo " clean to remove the build artefacts"
@echo " lint to lint the markdown"
@echo " links to check internal links in the service manual"
@echo " test to test the lint tools"
@echo " aspell to interactively spellcheck all of the content"
clean:
rm -rf _site/*
aspell:
find service-manual -type f -name '*.md' -exec aspell -d, --master=british --mode=sgml -c '{}' \;
test:
# go install code.google.com/p/go.tools/cmd/vet
go vet ./tools/lint/
# go get github.com/golang/lint/golint
golint tools/lint/
go test tools/lint/mdlint/mdlint_test.go
go test ./tools/linkcheck/
lint:
go run tools/lint/lint.go --exclude service-manual/assets/toolkit service-manual
links:
go get -t -v github.com/jabley/markdown
go run tools/linkcheck/linkcheck.go service-manual