mirror of
https://github.com/restic/restic.git
synced 2024-09-05 19:09:24 +02:00
11 lines
267 B
Makefile
11 lines
267 B
Makefile
|
# Build doc.go from template and snippets.
|
||
|
|
||
|
SHELL=/bin/bash
|
||
|
|
||
|
../doc.go: doc-snippets.go doc.template snipdoc.awk
|
||
|
@tmp=$$(mktemp) && \
|
||
|
awk -f snipdoc.awk doc-snippets.go doc.template > $$tmp && \
|
||
|
chmod +w ../doc.go && \
|
||
|
mv $$tmp ../doc.go && \
|
||
|
chmod -w ../doc.go
|