aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-09-06 23:51:15 +0700
committerShulhan <ms@kilabit.info>2022-09-06 23:51:15 +0700
commit79a18749c364e18b07dbeb4f296903aa568e1766 (patch)
tree018a40223312b629ddeb6952fb757a865a42d792 /Makefile
parente14c7ccc5f0e41a862cb7420d2ed259f66957840 (diff)
downloadgotp-79a18749c364e18b07dbeb4f296903aa568e1766.tar.xz
all: add task to serve and preview the documentation at _doc
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a17d4e4..c90fee7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
## SPDX-FileCopyrightText: 2021 M. Shulhan <ms@kilabit.info>
## SPDX-License-Identifier: GPL-3.0-or-later
-.PHONY: all test build install
+.PHONY: all test build install serve-doc
VERSION:=$(shell git describe --tags)
LDFLAGS:=-ldflags "-s -w -X 'git.sr.ht/~shulhan/gotp.Version=$(VERSION)'"
@@ -18,3 +18,6 @@ build:
install: build
install -m755 _bin/gotp $(GOBIN)/
+
+serve-doc:
+ ciigo serve _doc