miller/docs/src/Makefile
2021-11-19 13:55:57 -05:00

18 lines
489 B
Makefile

# Miller docs have lots of text generated by running the Miller executable. We
# have source files named like foo.md.in which are writable; the ./genmds
# script turns each into its respective foo.md file.
FILES=$(wildcard *.md)
genmds: $(FILES)
%.md: %.md.in
@./genmds $<
# Do this to force-build if the *.md.in inputs are unchanged but something else
# is, e.g. mlr source-code changes as affecting the output of autogen code
# snippets.
forcebuild:
@./genmds
.PHONY: forcebuild