by a factor of 3
Without this patch, using make -j
built every man page and html page 25 times

Now, man pages are always generated in a single ronn call
after all .ronn files are made.

Workarounds GNU make bug https://savannah.gnu.org/bugs/?54854
This commit is contained in:
Bernhard M. Wiedemann 2018-10-09 13:09:58 +02:00
Родитель 70a5493539
Коммит 66399a4e3a
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -58,8 +58,10 @@ man-pages: $(HELP_ALL:=.ronn) $(HELP_ALL) $(HELP_ALL:=.txt)
%.txt: %.ronn %.txt: %.ronn
groff -Wall -mtty-char -mandoc -Tutf8 -rLL=$(TEXT_WIDTH)n $< | col -b >$@ groff -Wall -mtty-char -mandoc -Tutf8 -rLL=$(TEXT_WIDTH)n $< | col -b >$@
%.1: %.1.ronn bin/ronn $(HELP_ALL): share/man/man-pages.stamp
share/man/man-pages.stamp: bin/ronn $(HELP_ALL:=.ronn)
bin/ronn --organization=GITHUB --manual="Hub Manual" share/man/man1/*.ronn bin/ronn --organization=GITHUB --manual="Hub Manual" share/man/man1/*.ronn
touch $@
%.1.ronn: bin/hub %.1.ronn: bin/hub
bin/hub help $(*F) --plain-text | script/format-ronn $(*F) $@ bin/hub help $(*F) --plain-text | script/format-ronn $(*F) $@