]> The Tcpdump Group git mirrors - libpcap/commitdiff
Add a comment explaining why we're not using $< in the pcap-config rule.
authorGuy Harris <[email protected]>
Sun, 16 Jan 2011 19:47:52 +0000 (11:47 -0800)
committerGuy Harris <[email protected]>
Sun, 16 Jan 2011 19:47:52 +0000 (11:47 -0800)
Makefile.in

index 8244bb7ef8c8bd7627efacdcb68a070b79307f35..e6cd36965b7481f74cdf867d6bbb153bbb1bb15b 100644 (file)
@@ -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 "[email protected]:$<";
+# 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 $@ [email protected]
        ./config.status [email protected]:$(srcdir)/pcap-config.in