2
2
mirror of https://github.com/octoleo/restic.git synced 2025-01-24 07:38:25 +00:00

17 lines
319 B
Makefile
Raw Normal View History

2017-10-22 10:07:36 +02:00
# Build doc.go from template and snippets.
SHELL=/bin/bash
../doc.go: build doc-snippets.go doc.template snipdoc.awk
2017-10-22 10:07:36 +02:00
@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