Rerun generator if images/test.iso does not exist or has been updated.
authorRichard Jones <rjones@redhat.com>
Sat, 17 Apr 2010 14:41:16 +0000 (15:41 +0100)
committerRichard Jones <rjones@redhat.com>
Sat, 17 Apr 2010 14:41:16 +0000 (15:41 +0100)
The MD5 hash of this file is embedded in the output of the
generator.

src/Makefile.am

index 4764a55..43f1b0d 100644 (file)
@@ -50,13 +50,16 @@ EXTRA_DIST = \
 # have to create the directory first.
 noinst_DATA = stamp-generator
 
-stamp-generator: generator.ml
+stamp-generator: generator.ml ../images/test.iso
        mkdir -p $(top_srcdir)/perl/lib/Sys
        mkdir -p $(top_srcdir)/ruby/ext/guestfs
        mkdir -p $(top_srcdir)/java/com/redhat/et/libguestfs
        mkdir -p $(top_srcdir)/csharp
        cd $(top_srcdir) && ocaml -warn-error A src/generator.ml
 
+../images/test.iso:
+       make -C ../images test.iso
+
 include_HEADERS = guestfs.h guestfs-actions.h guestfs-structs.h
 
 lib_LTLIBRARIES = libguestfs.la