1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-12-16 16:35:45 +00:00

Generate and install man-pages if Doxygen is installed

This commit is contained in:
Xorg 2016-06-05 12:09:59 +02:00
parent 240a862c45
commit 8fda5a74f1
2 changed files with 28 additions and 0 deletions

View file

@ -39,6 +39,8 @@ AM_PROG_LIBTOOL
AM_CPPFLAGS="$CPPFLAGS"
AC_CHECK_HEADERS([stdint.h])
AC_CHECK_PROGS([DOXYGEN], [doxygen])
AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"])
AM_LDFLAGS="$LDFLAGS"
if test "x$GCC" = "xyes"; then

View file

@ -33,3 +33,29 @@ noinst_HEADERS = \
rdtsc.h
EXTRA_DIST += libcpuid.sym libcpuid_vc71.vcproj libcpuid_vc9.vcproj
if HAVE_DOXYGEN
directory = $(top_srcdir)/libcpuid/docs/man/man3
dist_man_MANS = $(directory)/cpu_id_t.3 \
$(directory)/cpu_list_t.3 \
$(directory)/cpu_mark_t.3 \
$(directory)/cpu_raw_data_t.3 \
$(directory)/libcpuid.3
$(directory)/cpu_id_t.3: doxyfile.stamp
$(directory)/cpu_list_t.3: doxyfile.stamp
$(directory)/cpu_mark_t.3: doxyfile.stamp
$(directory)/cpu_raw_data_t.3: doxyfile.stamp
$(directory)/libcpuid.3: doxyfile.stamp
doxyfile.stamp:
$(DOXYGEN) Doxyfile
echo Timestamp > doxyfile.stamp
CLEANFILES = doxyfile.stamp
all-local: doxyfile.stamp
clean-local:
rm -rf $(top_srcdir)/libcpuid/docs
endif