]> git.ipfire.org Git - thirdparty/git.git/commit - Documentation/Makefile
Doc: auto-detect changed build flags
authorMartin Ågren <martin.agren@gmail.com>
Sun, 17 Mar 2019 18:36:00 +0000 (19:36 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Mar 2019 06:54:17 +0000 (15:54 +0900)
commit9a71722b4df993475553ea499fdf44dab5fed544
tree018e4665c5eaa7fe841e10089592c104e59be94d
parent0e94f7aa730b108f7907cfab1b2a7fba965de442
Doc: auto-detect changed build flags

If you build the documentation switching between different options,
e.g., to build with both Asciidoc and Asciidoctor, you'll probably find
yourself running `make -C Documentation clean` either too often (wasting
time) or too rarely (getting mixed builds).

Track the flags we're using in the documentation build, similar to how
the main Makefile tracks CFLAGS and prefix flags. Track ASCIIDOC_COMMON
directly rather than its individual components -- that should make it
harder to forget to update the tracking if/when we modify the build
commands.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/.gitignore
Documentation/Makefile