+noinst_DATA = html/guestfs.3.html html/guestfish.1.html
+
+html/guestfs.3.html: guestfs.pod guestfs-actions.pod guestfs-structs.pod
+ sed \
+ -e '/@ACTIONS@/rguestfs-actions.pod' -e 's/@ACTIONS@//' \
+ -e '/@STRUCTS@/rguestfs-structs.pod' -e 's/@STRUCTS@//' \
+ < $< | \
+ pod2html \
+ --css 'pod.css' \
+ --title "libguestfs API documentation" \
+ --htmldir html \
+ --outfile $@
+
+html/guestfish.1.html: guestfish.pod guestfish-actions.pod
+ sed \
+ -e '/@ACTIONS@/rguestfish-actions.pod' -e 's/@ACTIONS@//' \
+ < $< | \
+ pod2html \
+ --css 'pod.css' \
+ --title "guestfish, libguestfs filesystem interactive shell" \
+ --htmldir html \
+ --outfile $@
+
+website: html/guestfs.3.html html/guestfish.1.html
+ cp $^ html/pod.css $(HOME)/d/redhat/et-website/libguestfs/
+