File: extra.test

package info (click to toggle)
automake 1%3A1.4-p4-1.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,312 kB
  • ctags: 21
  • sloc: perl: 5,516; sh: 5,218; ansic: 404; makefile: 196
file content (25 lines) | stat: -rwxr-xr-x 523 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /bin/sh

# Test to make sure EXTRA_ targets are generated.  This test used to
# make sure the targets were *not* generated.  That is wrong; the
# targets should always be generated.  However, they should not be
# built by default.

. $srcdir/defs || exit 1

cat >> configure.in << 'END'
AC_PROG_CC
END

cat > Makefile.am << 'END'
bin_PROGRAMS = @foo@
EXTRA_PROGRAMS = zardoz
END

$AUTOMAKE || exit 1

grep "^zardoz" Makefile.in || exit 1

# Can't have EXTRA clean rules.
grep 'clean.*EXTRA' Makefile.in && exit 1
exit 0