Under certain circumstances, users don't want to install *any*
documentation files from my project.
From the example in the info page for automake, I added this to
configure.ac:
AC_ARG_ENABLE([installdocs],
[ --enable-installdocs install documentation],
[case "${enableval}" in
yes) installdocs=true ;;
no) installdocs=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-installdocs]) ;;
esac],[installdocs=true])
AM_CONDITIONAL([INSTALLDOCS], [test x$installdocs = xtrue])
and this to Makefile.am:
if INSTALLDOCS
MAYBEDOCS = doc
dist_doc_DATA = README
endif
SUBDIRS = src $(MAYBEDOCS)
But even when I run ./configure --disable-installdocs and make install,
make still creates the documentation directory:
make[2]: Entering directory `/home/kirk/git/pgdbf'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/doc/pgdbf" || /bin/mkdir -p
"/usr/local/share/doc/pgdbf"
make[2]: Leaving directory `/home/kirk/git/pgdbf'
Is there a standard way to avoid installing documention? If not, am I on
the right track (and if so, what am I missing)?
--
Kirk Strauser
Daycos
_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf