autoconf
[Top][All Lists]
Advanced

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

Choosing not to install documentation


From: Kirk Strauser
Subject: Choosing not to install documentation
Date: Thu, 25 Jun 2009 11:42:52 -0500
User-agent: KMail/1.11.90 (Linux/2.6.30-9-generic; KDE/4.2.90; x86_64; ; )

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]