aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-09-06 00:43:36 +0700
committerShulhan <ms@kilabit.info>2022-09-06 00:43:36 +0700
commit9a6a3e82589e4e21e7614a269281bf589c395a3a (patch)
treea82404670ba6440f461a7cc6ce05a3f19c4bade5
parentb8b34200320caeec1160523053b19e1e1be5079d (diff)
downloadciigo-9a6a3e82589e4e21e7614a269281bf589c395a3a.tar.xz
all: add task to preview the documentation
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b2dc909..ec2a6e6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
## SPDX-FileCopyrightText: 2019 Shulhan <ms@kilabit.info>
## SPDX-License-Identifier: GPL-3.0-or-later
-.PHONY: all lint test install build
+.PHONY: all lint test install build serve-doc
VERSION:=$(shell git describe --tags)
LDFLAGS:=-ldflags "-s -w -X 'git.sr.ht/~shulhan/ciigo.Version=$(VERSION)'"
@@ -26,6 +26,9 @@ build:
mkdir -p $(DIR_BUILD)
CGO_ENABLED=0 go build $(LDFLAGS) -o $(DIR_BUILD) ./cmd/...
+serve-doc:
+ go run ./cmd/ciigo serve _doc
+
.PHONY: chroot-setup chroot-test
chroot-setup: