Skip to content

Commit a782387

Browse files
committed
Include makefile target for building septa.1 manpage and installing it.
1 parent 023c23a commit a782387

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

makefile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
.PHONY: all clean pull get build build-in-container image test test-in-container install install-local
1+
.PHONY: all clean pull get build build-in-container image test test-in-container install install-local gh-release install-manpages build-manpages install-mango-doc
22

33
GOLANG := golang:1.19
44
GOOS := darwin
55

6+
VERSION ?= 1.7.0
7+
68
all: clean pull test build
79

810
clean:
@@ -38,3 +40,12 @@ image: build
3840
# gh-release creates a new release in github and uploads the built binary.
3941
gh-release:
4042
gh release create ${VERSION} 'bin/septa.zip'
43+
44+
install-mango-doc:
45+
go install github.com/dherbst/mango-doc@latest
46+
47+
build-manpages:
48+
cd cmd/septa && mango-doc -version ${VERSION} > ../../man/septa.1
49+
50+
install-manpages:
51+
sudo cp man/septa.1 /usr/local/share/man/man1/

man/septa.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.\" Automatically generated by mango(1)
2-
.TH "septa" 1 "2023-12-29" "version 1.8.0" "User Commands"
2+
.TH "septa" 1 "2023-12-29" "version 1.7.0" "User Commands"
33
.SH "NAME"
44
septa \- a command line tool to use the septa API to get information about SEPTA transportation.
55
.SH "SYNOPSIS"

0 commit comments

Comments
 (0)