2 # Copyright (C) 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 # The pdf, ps and dvi targets shouldn't let clutter in the build directory.
18 # Related to automake bug#11146.
20 required='makeinfo tex texi2dvi-o dvips'
25 echo AC_OUTPUT >> configure.ac
27 cat > Makefile.am << 'END'
28 all-local: ps pdf dvi html
29 info_TEXINFOS = foo.texi sub/bar.texi
32 cat > foo.texi << 'END'
42 cat > sub/bar.texi << 'END'
48 @include version2.texi
52 cat > baz.texi << 'END'
61 cat > baz.texi << 'END'
85 $AUTOMAKE --add-missing
90 # Try one by one, to ensure later targets don't involuntarily
91 # clean up potential cruft left by earlier ones.
92 for fmt in info pdf ps dvi html all; do
94 ls -l . sub # For debugging.
95 ls -d foo* baz* sub/bar* > lst
96 $EGREP -v '^(foo|sub/bar|baz)\.(texi|dvi|ps|pdf|html|info)$' lst && exit 1