[PATCH] add dependency to ensure make-initramfs.sh is rebuilt when (Jim Meyering)
[libguestfs.git] / Makefile.am
index b4df8a8..47ef6d0 100644 (file)
@@ -34,6 +34,9 @@ endif
 if HAVE_JAVA
 SUBDIRS += java
 endif
+if HAVE_INSPECTOR
+SUBDIRS += inspector
+endif
 
 EXTRA_DIST = \
        make-initramfs.sh update-initramfs.sh \
@@ -70,13 +73,16 @@ $(INITRAMFSIMG) $(VMLINUZ): initramfs/fakeroot.log
 initramfs/fakeroot.log: make-initramfs.sh.in
        -mv $(INITRAMFSIMG) $(INITRAMFSIMG).bak
        -mv $(VMLINUZ) $(VMLINUZ).bak
-       if ! bash $(builddir)/make-initramfs.sh; then rm -f $@; exit 1; fi
+       if ! bash $(top_builddir)/make-initramfs.sh; then rm -f $@; exit 1; fi
 
 $(INITRAMFSIMG): initramfs/fakeroot.log daemon/guestfsd
        rm -f $@
-       bash $(builddir)/update-initramfs.sh
+       bash $(top_builddir)/update-initramfs.sh
        touch $@
 
+make-initramfs.sh: make-initramfs.sh.in
+       ./config.status $@
+
 # Tests.  These are auto-generated from the test descriptions.
 
 check_PROGRAMS = tests
@@ -148,7 +154,9 @@ html/recipes.html: $(wildcard recipes/*.sh) $(wildcard recipes/*.html) $(wildcar
        sh make-recipes.sh recipes/*.sh > $@-t
        mv $@-t $@
 
-website: html/guestfs.3.html html/guestfish.1.html html/recipes.html
+website: html/guestfs.3.html html/guestfish.1.html \
+       html/virt-inspector.1.html \
+       html/recipes.html
        cp $^ html/pod.css html/recipes.css \
          $(HOME)/d/redhat/et-website/libguestfs/