summaryrefslogtreecommitdiffstats
path: root/images
diff options
context:
space:
mode:
authorRichard Jones <rjones@centos5x32.home.annexia.org>2009-07-07 17:33:09 +0100
committerRichard Jones <rjones@centos5x32.home.annexia.org>2009-07-07 17:33:09 +0100
commit11400fde901e1c7a6d3c3887f322af66374793c2 (patch)
tree11646ddb2ae0e7f7f510d1c7393df2ed4e13a98c /images
parent9a3c4a62398d9f0c553ac2b5f43a3eefafd7bac5 (diff)
downloadlibguestfs-11400fde901e1c7a6d3c3887f322af66374793c2.tar.gz
libguestfs-11400fde901e1c7a6d3c3887f322af66374793c2.tar.xz
libguestfs-11400fde901e1c7a6d3c3887f322af66374793c2.zip
RHEL 5: $(builddir) did not exist with this old autoconf/automake, so workaround.
Diffstat (limited to 'images')
-rw-r--r--images/Makefile.am15
1 files changed, 9 insertions, 6 deletions
diff --git a/images/Makefile.am b/images/Makefile.am
index 9353e178..256259b8 100644
--- a/images/Makefile.am
+++ b/images/Makefile.am
@@ -15,6 +15,9 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+# Old RHEL 5 autoconf doesn't have builddir.
+builddir ?= $(top_builddir)/images
+
EXTRA_DIST = \
helloworld.tar \
helloworld.tar.gz \
@@ -50,27 +53,27 @@ test.sqsh: $(squash_files)
rm -f $@
$(MKSQUASHFS) $(squash_files) $@
-100kallzeroes:
+$(builddir)/100kallzeroes:
rm -f $@ $@-t
dd if=/dev/zero of=$@-t bs=1024 count=100
mv $@-t $@
-100kallnewlines: 100kallzeroes
+$(builddir)/100kallnewlines: $(builddir)/100kallzeroes
rm -f $@ $@-t
tr '\0' '\n' < $< > $@-t
mv $@-t $@
-100kallspaces: 100kallzeroes
+$(builddir)/100kallspaces: $(builddir)/100kallzeroes
rm -f $@ $@-t
tr '\0' ' ' < $< > $@-t
mv $@-t $@
-100krandom:
+$(builddir)/100krandom:
rm -f $@ $@-t
dd if=/dev/urandom of=$@-t bs=1024 count=100
mv $@-t $@
-10klines:
+$(builddir)/10klines:
rm -f $@ $@-t
i=0; \
while [ $$i -lt 10000 ]; do \
@@ -79,7 +82,7 @@ test.sqsh: $(squash_files)
done > $@-t
mv $@-t $@
-initrd: empty known-1 known-2 known-3
+$(builddir)/initrd: empty known-1 known-2 known-3
rm -f $@ $@-t
for f in $^; do echo $$f; done | cpio -o -H newc | gzip --best > $@-t
mv $@-t $@