aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 22 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1266d02..a13d8b0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
## SPDX-FileCopyrightText: 2021 M. Shulhan <ms@kilabit.info>
## SPDX-License-Identifier: GPL-3.0-or-later
+GOBIN=$(shell go env GOBIN)
+
.PHONY: all
all: build lint
@@ -10,8 +12,26 @@ lint:
.PHONY: build
build:
- tsc --outDir .
+ npx tsc --outDir .
.PHONY: watch
watch:
- tsc --outDir . --watch
+ npx tsc --outDir . --watch
+
+
+## install third party tools required for developmet.
+
+.PHONY: install-tools
+install-tools: $(GOBIN)/ciigo
+ echo "GOBIN: $(GOBIN)"
+
+$(GOBIN)/ciigo:
+ go install git.sr.ht/~shulhan/ciigo/cmd/ciigo@latest
+
+
+## serve the HTML files for local development and automatically convert
+## ".md" files to HTML for previewing.
+
+.PHONY: serve
+serve:
+ ciigo -exclude="(node_modules)" -address=127.0.0.1:4578 serve .