File: target.test

package info (click to toggle)
automake 1.3-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 1,944 kB
  • ctags: 24
  • sloc: perl: 4,855; sh: 3,833; ansic: 387; makefile: 163
file content (19 lines) | stat: -rwxr-xr-x 340 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
#! /bin/sh

# Test for a bug where target names and variable names are treated alike.
# Bug from Franois Pinard.

. $srcdir/defs || exit 1

echo AC_PROG_CC >> configure.in

cat > Makefile.am << 'END'
bin_PROGRAMS = consud
## Note next line is target, not variable.
consud_SOURCES: consud.c
END

echo > consud.c

$AUTOMAKE && exit 1
exit 0