Mercurial > hg > index.cgi
annotate docs/Makefile @ 508:10f62dc61a75
Fix bad usage of sprintf()
Usage of sprintf() to append to a string in the form of
sprintf(buf, "%s...", buf...) is undefined, regardless whether it
worked on a lot of older systems. It was always a bad idea and it
now breaks on current glibc and gcc development environments.
The moral: if any of your code uses sprintf() in a way similar to
the above, fix it. It may not fail in a benign way.
author | William Astle <lost@l-w.ca> |
---|---|
date | Sun, 10 May 2020 22:38:24 -0600 |
parents | fc166b3bbae3 |
children |
rev | line source |
---|---|
169 | 1 all: |
170 | 2 rm -f manual/*.pdf manual/*.html |
169 | 3 docbook2html -o manual manual.docbook.sgml |
4 docbook2html -u manual.docbook.sgml && mv manual.docbook.html manual/manual.html | |
5 docbook2pdf -u manual.docbook.sgml && mv manual.docbook.pdf manual/manual.pdf | |
174 | 6 rm -f manual.docbook.html |
351
e4ad15af2e93
Make the "hg" stuff in the docs/Makefile clearly maintainter related
William Astle <lost@l-w.ca>
parents:
174
diff
changeset
|
7 |
e4ad15af2e93
Make the "hg" stuff in the docs/Makefile clearly maintainter related
William Astle <lost@l-w.ca>
parents:
174
diff
changeset
|
8 maint: |
394
fc166b3bbae3
Update manual for recent additions.
William Astle <lost@l-w.ca>
parents:
351
diff
changeset
|
9 hg rm --force manual/* || true |
351
e4ad15af2e93
Make the "hg" stuff in the docs/Makefile clearly maintainter related
William Astle <lost@l-w.ca>
parents:
174
diff
changeset
|
10 $(MAKE) all |
169 | 11 hg add manual/* |