Manpage update & generation bugfix

The manpage update was broken. Now make docs updates the manpage.
This commit is contained in:
Yann Weber 2017-05-15 15:05:52 +02:00
commit 5876beb864
3 changed files with 21 additions and 8 deletions

View file

@ -1,23 +1,23 @@
dist_man_MANS= $(top_srcdir)/docs/man/man1/ttail.1 dist_man_MANS= $(top_srcdir)/docs/man/man1/ttail.1
if HAVE_DOXYGEN if HAVE_DOXYGEN
CLEANFILES = doxyfile.stamp CLEANFILES = doxyfile.stamp
directory = $(top_srcdir)/docs/man/man3/
$(directory)/man_page_1.3: doxyfile.stamp
$(directory)/man_page_2.3: doxyfile.stamp
doxyfile.stamp: doxyfile.stamp:
$(DOXYGEN) Doxyfile $(DOXYGEN) Doxyfile; \
echo Timestamp > doxyfile.stamp echo Timestamp > doxyfile.stamp; \
make manpage
html-local: doxyfile.stamp html-local: doxyfile.stamp
$(top_srcdir)/docs/man/man1/ttail.1: doxyfile.stamp $(top_srcdir)/docs/man/man1/ttail.1: doxyfile.stamp
manpage:
-mkdir -p $(top_srcdir)/docs/man/man1;\ -mkdir -p $(top_srcdir)/docs/man/man1;\
cp $(top_srcdir)/docs/man/man3/ttail.3 $(top_srcdir)/docs/man/man1/ttail.1;\ cp $(top_srcdir)/docs/man/man3/ttail.3 $(top_srcdir)/docs/man/man1/ttail.1;\
sed -i 's/^.TH "ttail" 3/.TH "ttail" 1/' $(top_srcdir)/docs/man/man1/ttail.1 sed -i 's/^.TH "ttail" 3/.TH "ttail" 1/' $(top_srcdir)/docs/man/man1/ttail.1
clean-local: clean-local:
-rm -rf $(top_srcdir)/docs/html $(top_srcdir)/docs/man/man3 $(top_srcdir)/docs/doxygen_sqlite3.db -rm -rf $(top_srcdir)/docs/html $(top_srcdir)/docs/man/man3 $(top_srcdir)/docs/doxygen_sqlite3.db
endif endif

View file

@ -165,4 +165,9 @@ The O modifier specifies that the numerical input may be in an alternative local
Loglines has to be sorted\&. Loglines has to be sorted\&.
.SH "AUTHOR" .SH "AUTHOR"
.PP .PP
Written by Yann Weber yann.weber@members.fsf.org Written by Yann Weber <yann.weber@members.fsf.org>
.SH "COPYRIGHT"
.PP
Copyright © 2017 Weber Yann License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\&.
.PP
This is free software: you are free to change and redistribute it\&. There is NO WARRANTY, to the extent permitted by law\&.

View file

@ -160,7 +160,15 @@
*Loglines has to be sorted. *Loglines has to be sorted.
* *
*@section AUTHOR *@section AUTHOR
*Written by Yann Weber <yann.weber@members.fsf.org> *Written by Yann Weber &lt;yann.weber@members.fsf.org&gt;
*
*@section COPYRIGHT
*Copyright © 2017 Weber Yann License GPLv3+: GNU GPL version 3 or later
*&lt;http://gnu.org/licenses/gpl.html>.
*
*This is free software: you are free to change and redistribute it.
*There is NO WARRANTY, to the extent permitted by law.
*
*/ */
/**@mainpage /**@mainpage