ttail/docs/Makefile.am
Yann Weber 5876beb864 Manpage update & generation bugfix
The manpage update was broken. Now make docs updates the manpage.
2017-05-15 15:05:52 +02:00

23 lines
595 B
Makefile

dist_man_MANS= $(top_srcdir)/docs/man/man1/ttail.1
if HAVE_DOXYGEN
CLEANFILES = doxyfile.stamp
doxyfile.stamp:
$(DOXYGEN) Doxyfile; \
echo Timestamp > doxyfile.stamp; \
make manpage
html-local: doxyfile.stamp
$(top_srcdir)/docs/man/man1/ttail.1: doxyfile.stamp
manpage:
-mkdir -p $(top_srcdir)/docs/man/man1;\
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
clean-local:
-rm -rf $(top_srcdir)/docs/html $(top_srcdir)/docs/man/man3 $(top_srcdir)/docs/doxygen_sqlite3.db
endif