diff options
| author | Shulhan <ms@kilabit.info> | 2022-09-06 00:43:36 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-09-06 00:43:36 +0700 |
| commit | 9a6a3e82589e4e21e7614a269281bf589c395a3a (patch) | |
| tree | a82404670ba6440f461a7cc6ce05a3f19c4bade5 | |
| parent | b8b34200320caeec1160523053b19e1e1be5079d (diff) | |
| download | ciigo-9a6a3e82589e4e21e7614a269281bf589c395a3a.tar.xz | |
all: add task to preview the documentation
| -rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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: |
