Skip to content

Commit

Permalink
Include makefile target for building septa.1 manpage and installing it.
Browse files Browse the repository at this point in the history
  • Loading branch information
dherbst committed Dec 29, 2023
1 parent 023c23a commit a782387
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
.PHONY: all clean pull get build build-in-container image test test-in-container install install-local
.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

GOLANG := golang:1.19
GOOS := darwin

VERSION ?= 1.7.0

all: clean pull test build

clean:
Expand Down Expand Up @@ -38,3 +40,12 @@ image: build
# gh-release creates a new release in github and uploads the built binary.
gh-release:
gh release create ${VERSION} 'bin/septa.zip'

install-mango-doc:
go install github.com/dherbst/mango-doc@latest

build-manpages:
cd cmd/septa && mango-doc -version ${VERSION} > ../../man/septa.1

install-manpages:
sudo cp man/septa.1 /usr/local/share/man/man1/
2 changes: 1 addition & 1 deletion man/septa.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" Automatically generated by mango(1)
.TH "septa" 1 "2023-12-29" "version 1.8.0" "User Commands"
.TH "septa" 1 "2023-12-29" "version 1.7.0" "User Commands"
.SH "NAME"
septa \- a command line tool to use the septa API to get information about SEPTA transportation.
.SH "SYNOPSIS"
Expand Down

0 comments on commit a782387

Please sign in to comment.