mirror of
https://github.com/bspeice/libcvautomation
synced 2025-04-21 00:41:29 -04:00
Make the build process more portable
This commit is contained in:
parent
e436323d7a
commit
590af56dee
@ -56,13 +56,14 @@ AC_ARG_WITH(docs, [ --with-documentation build documentation for libcvautoma
|
|||||||
AC_ARG_ENABLE(man, [ --enable-man enable building the 'man' pages for libcvautomation @<:@default=enable@:>@])
|
AC_ARG_ENABLE(man, [ --enable-man enable building the 'man' pages for libcvautomation @<:@default=enable@:>@])
|
||||||
AC_ARG_ENABLE(tex, [ --enable-tex enable building the 'latex' pages for libcvautomation @<:@default=enable@:>@])
|
AC_ARG_ENABLE(tex, [ --enable-tex enable building the 'latex' pages for libcvautomation @<:@default=enable@:>@])
|
||||||
if test "$with_docs" != "no"; then
|
if test "$with_docs" != "no"; then
|
||||||
AC_CHECK_PROGS([Doxygen], [doxygen])
|
AC_CHECK_PROGS([Doxygen], [doxygen], [true])
|
||||||
if test -z "$Doxygen"; then
|
if test -z "$Doxygen"; then
|
||||||
AC_MSG_WARN([Doxygen not found - continuing without building documentation.])
|
AC_MSG_WARN([Doxygen not found - continuing without building documentation.])
|
||||||
|
else
|
||||||
|
AM_CONDITIONAL(BUILD_DOXYGEN, [test "$with_docs" != "no"])
|
||||||
|
AC_CONFIG_FILES([docs/Doxyfile])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AM_CONDITIONAL(BUILD_DOXYGEN, [test "$with_docs" != "no"])
|
|
||||||
AM_COND_IF(BUILD_DOXYGEN, [AC_CONFIG_FILES([docs/Doxyfile])])
|
|
||||||
|
|
||||||
#Check if we should generate man pages
|
#Check if we should generate man pages
|
||||||
if test "$enable_man" != "no"; then
|
if test "$enable_man" != "no"; then
|
||||||
|
@ -2,7 +2,7 @@ if BUILD_DOXYGEN
|
|||||||
|
|
||||||
EXTRA_DIST = html
|
EXTRA_DIST = html
|
||||||
install-data-local:
|
install-data-local:
|
||||||
$(MKDIR_P) $(DESTDIR)$(datadir)/$(PACKAGE)/html
|
$(mkdir_p) $(DESTDIR)$(datadir)/$(PACKAGE)/html
|
||||||
for f in html/*; do \
|
for f in html/*; do \
|
||||||
$(INSTALL_DATA) $(srcdir)/$$f \
|
$(INSTALL_DATA) $(srcdir)/$$f \
|
||||||
$(DESTDIR)$(datadir)/$(PACKAGE)/html; done
|
$(DESTDIR)$(datadir)/$(PACKAGE)/html; done
|
||||||
|
Loading…
Reference in New Issue
Block a user