1 Add options to enable/disable docs and demos
3 Originally written by Anthony Viallard
4 <viallard@syscom-instruments.com>.
6 [Vincent: adapt patch to 5.0.5 version]
8 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
11 diff -rup a/configure.in b/configure.in
12 --- a/configure.in 2016-09-07 05:14:29.000000000 +0100
13 +++ b/configure.in 2016-12-01 12:09:31.487464774 +0000
14 @@ -818,6 +818,16 @@ if test "$with_cwdrc" = yes; then
15 [ Define if you want to read .gnuplot from current directory (SECURITY RISK!).])
18 +dnl Whether we want to build the doc files
19 +dnl Does nothing here, is passed on to the doc subdir
20 +AC_ARG_ENABLE(doc,dnl
21 +[ --disable-doc do not build doc files])
23 +dnl Whether we want to build the demo files
24 +dnl Does nothing here, is passed on to the demo subdir
25 +AC_ARG_ENABLE(demo,dnl
26 +[ --disable-demo do not build demo files])
28 dnl Sort help/subtopic tables by row or column
29 AC_ARG_WITH(row-help,dnl
30 [ --with-row-help format help and subtopic tables by row (default)
31 @@ -1303,6 +1313,24 @@ fi
32 dnl No configuration option for this one yet
33 AC_DEFINE(MAX_PARALLEL_AXES,7, [Maximum number of parallel axes supported])
36 +if test "$enable_doc" != no; then
37 + AC_CONFIG_SUBDIRS(docs)
45 +if test "$enable_demo" != no; then
46 + AC_CONFIG_SUBDIRS(demo)
53 dnl Substitute variables
55 AC_SUBST(VERSION_MAJOR)
56 diff -rup a/Makefile.am b/Makefile.am
57 --- a/Makefile.am 2014-05-30 17:38:08.000000000 +0100
58 +++ b/Makefile.am 2016-12-01 12:09:31.488464794 +0000
60 ## Process this file with automake to produce Makefile.in -*-Makefile-*-
61 AUTOMAKE_OPTIONS = foreign
63 -SUBDIRS = config m4 term src docs $(LISPDIR) man demo tutorial share
64 +SUBDIRS = config m4 term src $(DOCSUBDIR) $(LISPDIR) man $(DEMOSUBDIR) tutorial share
66 EXTRA_DIST = BUGS CodeStyle Copyright FAQ.pdf GNUmakefile INSTALL INSTALL.gnu \
67 Makefile.maint PATCHLEVEL PGPKEYS PORTING README RELEASE_NOTES \