Choosing not to install documentation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux