build: use portable Makefile variables
authorA. Gordon <assafgordon@gmail.com>
Mon, 15 Sep 2014 19:51:50 +0000 (15:51 -0400)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 16 Sep 2014 17:57:54 +0000 (18:57 +0100)
* Makefile.am: use '$?' instead of '$<'
  $< in a non-inference rule is a GNU-make extension, which fails with
  BSD make.

Makefile.am

index 24d1730..1c14948 100644 (file)
@@ -32,9 +32,9 @@ man_MANS = virt-what.1
 
 virt-what.1: virt-what.pod
        pod2man -c "Virtualization Support" --release "$(PACKAGE)-$(VERSION)" \
-         $< > $@
+         $? > $@
 virt-what.txt: virt-what.pod
-       pod2text $< > $@
+       pod2text $? > $@
 
 endif