From: Guy Harris Date: Sun, 16 Jan 2011 19:47:52 +0000 (-0800) Subject: Add a comment explaining why we're not using $< in the pcap-config rule. X-Git-Tag: libpcap-1.2.1~85^2~12 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/5a9d67e953a499ca83b36bfd5762c46656b070e0 Add a comment explaining why we're not using $< in the pcap-config rule. --- diff --git a/Makefile.in b/Makefile.in index 8244bb7e..e6cd3696 100644 --- a/Makefile.in +++ b/Makefile.in @@ -488,6 +488,17 @@ bpf_filter.o: bpf_filter.c # # Generate the pcap-config script. # +# Some Makes, e.g. AIX Make and Solaris Make, can't handle "--file=$@.tmp:$<"; +# for example, the Solaris 9 make man page says +# +# Because make assigns $< and $* as it would for implicit rules +# (according to the suffixes list and the directory contents), +# they may be unreliable when used within explicit target entries. +# +# and this is an explicit target entry. +# +# Therefore, instead of using $<, we explicitly put in $(srcdir)/pcap-config.in. +# pcap-config: $(srcdir)/pcap-config.in @rm -f $@ $@.tmp ./config.status --file=$@.tmp:$(srcdir)/pcap-config.in