summaryrefslogtreecommitdiff
path: root/tests/vartar.test
blob: 8a212066c897c6c184f6a9f6eb78c147da208438 (plain)
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

# Targets and macros are two different name spaces.

. $srcdir/defs || exit 1

cat > Makefile.am << 'END'
install = install
install:
	$(install) install
END

$ACLOCAL || exit 1
$AUTOMAKE || exit 1

grep '^install = install$' Makefile.in || exit 1

cat > target.expected <<'EOF'
install:
	$(install) install
EOF
sed -n '/^install:/,/^	/p' Makefile.in > target.value
diff target.expected target.value || exit 1

exit 0