2 # Copyright (C) 2010-2012 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Make sure conditionals work with man pages.
21 cat >> configure.ac << 'END'
22 AM_CONDITIONAL([COND], [test x"$FOO" = x"true"])
26 cat > Makefile.am << 'END'
31 man_MANS = bar.2 baz.1
37 find $(mandir) ;: For debugging.
38 test -f $(mandir)/man1/foo.1
39 test -f $(mandir)/man4/6.4
40 test ! -f $(mandir)/man2/bar.2
41 test ! -f $(mandir)/man1/baz.1
42 test ! -f $(mandir)/man5/zap.5
44 find $(mandir) ;: For debugging.
45 test -f $(mandir)/man2/bar.2
46 test -f $(mandir)/man1/baz.1
47 test -f $(mandir)/man5/zap.5
48 test ! -f $(mandir)/man1/foo.1
49 test ! -f $(mandir)/man4/6.4
50 test ! -f $(mandir)/man4/6.man
57 $EGREP 'MANS|\.([123456789]|man)' Makefile.in # For debugging.
61 ../configure FOO=true --prefix="$(pwd)/_inst"
62 $EGREP 'MANS|\.([123456789]|man)' Makefile # For debugging.
68 ./configure FOO=false --prefix="$(pwd)/_inst"
69 $EGREP 'MANS|\.([123456789]|man)' Makefile # For debugging.
70 touch bar.2 baz.1 zap.5