diff options
| author | Shulhan <ms@kilabit.info> | 2020-05-01 15:08:49 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2020-05-07 13:56:46 +0700 |
| commit | f8b82a30ab2a1b5154689b3fcd0b6ded76cd18ec (patch) | |
| tree | fba6bfbbf63959db911f178a2a13676edf1fe670 /Makefile | |
| parent | 4e464be43a233cfe6f9ef0d6230f755e8ceeae88 (diff) | |
| download | ciigo-f8b82a30ab2a1b5154689b3fcd0b6ded76cd18ec.tar.xz | |
Makefile: add task to serve the generated example
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,7 +1,7 @@ RELEASES= _bin/ciigo-linux-amd64 \ _bin/ciigo-darwin-amd64 -.PHONY: all lint install build build-release +.PHONY: all lint install serve build build-release all: install @@ -14,6 +14,12 @@ install: go install ./cmd/ciigo-example go install ./cmd/ciigo +serve: + find _example -name "*.html" -delete + rm -f ./cmd/ciigo-example/static.go + go run ./internal/cmd/generate + DEBUG=1 go run ./cmd/ciigo-example + build-release: _bin $(RELEASES) _bin: |
