mirror of
https://github.com/Luzifer/nginx-sso.git
synced 2024-12-25 15:21:16 +00:00
17 lines
319 B
Makefile
17 lines
319 B
Makefile
|
# Build doc.go from template and snippets.
|
||
|
|
||
|
SHELL=/bin/bash
|
||
|
|
||
|
../doc.go: build doc-snippets.go doc.template snipdoc.awk
|
||
|
@tmp=$$(mktemp) && \
|
||
|
awk -f snipdoc.awk doc-snippets.go doc.template > $$tmp && \
|
||
|
chmod +w $@ && \
|
||
|
mv $$tmp $@ && \
|
||
|
chmod -w $@
|
||
|
@echo "wrote $@"
|
||
|
|
||
|
.PHONY: build
|
||
|
|
||
|
build:
|
||
|
go build doc-snippets.go
|