[1787] in Kerberos_V5_Development
On the use of $< in Makefiles...
daemon@ATHENA.MIT.EDU (epeisach@MIT.EDU)
Wed Sep 25 20:00:52 1996
From: epeisach@MIT.EDU
Date: Wed, 25 Sep 1996 20:00:41 -0400
To: krbcore@MIT.EDU
Are we starting to depend on gmake being required again in the build
system...
On the alpha, the standard make used to be sufficient... Not anymore...
When building in a separate build tree, make fails to recognize
$<....
From the man page on make:
$< Represents the name of the component that is being used to make the
target. Used only in conjunction with suffix rules.
In kadmin/testing/scripts....
We have
%.pl: %.pl.in
-rm -f $@.tmp
echo "#!$(PERL)" > $@.tmp
sed 1d $< >> $@.tmp
chmod +x $@.tmp
mv $@.tmp $@
Hmm - well, there is no .SUFFIXES entry for this, but even if added, $<
is not evaluated properly..... (it is empty).
What is this % syntax? I suspect that it is causing confusion...
If however, we rewrite
.pl_in.pl:
......
All works (provided the files are renamed .pl_in) with the standard
make...
Perhaps a renaming and rewrite would be acceptable? I really believe
that whenever the vendor supplied make works, we should use it...
(Of course a better question now is which vendor's makes worked with the
last release and is this a losing battle?)
ezra