-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (30 loc) · 1.61 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
.PHONY: clean
clean:
rm -rf .bundle .sass-cache _site vendor
rm *.snap*
.PHONY: deps
deps:
go build ./...
.PHONY: package
package: clean docs
# Build binary package for GitHub.
gbp buildpackage --git-ignore-branch # allow building from any branch
# Build source package for PPA
debuild -S -sa
# Build snap
snapcraft
.PHONY: docs
docs: deps
go run _util/generate-stimmtausch-cmd-docs/main.go
echo "---\nlayout: default\ntitle: \"Command: stimmtausch\"\n---\n\n" > docs/cmd/stimmtausch.md.bak
cat docs/cmd/stimmtausch.md | sed -e 's/.md)/)/g' | sed -e 's/](st/](\/cmd\/st/g' >> docs/cmd/stimmtausch.md.bak
mv docs/cmd/stimmtausch.md.bak docs/cmd/stimmtausch.md
echo "---\nlayout: default\ntitle: \"Command: stimmtausch headless\"\n---\n\n" > docs/cmd/stimmtausch_headless.md.bak
cat docs/cmd/stimmtausch_headless.md | sed -e 's/.md)/)/g' | sed -e 's/](st/](\/cmd\/st/g' >> docs/cmd/stimmtausch_headless.md.bak
mv docs/cmd/stimmtausch_headless.md.bak docs/cmd/stimmtausch_headless.md
echo "---\nlayout: default\ntitle: \"Command: stimmtausch strip-ansi\"\n---\n\n" > docs/cmd/stimmtausch_strip-ansi.md.bak
cat docs/cmd/stimmtausch_strip-ansi.md | sed -e 's/.md)/)/g' | sed -e 's/](st/](\/cmd\/st/g' >> docs/cmd/stimmtausch_strip-ansi.md.bak
mv docs/cmd/stimmtausch_strip-ansi.md.bak docs/cmd/stimmtausch_strip-ansi.md
echo "---\nlayout: default\ntitle: \"Command: stimmtausch config\"\n---\n\n" > docs/cmd/stimmtausch_config.md.bak
cat docs/cmd/stimmtausch_config.md | sed -e 's/.md)/)/g' | sed -e 's/](st/](\/cmd\/st/g' >> docs/cmd/stimmtausch_config.md.bak
mv docs/cmd/stimmtausch_config.md.bak docs/cmd/stimmtausch_config.md