X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=Makefile.am;h=fb1d42bab99679f0c2548fcc8309e392caceeff3;hb=b6d5c9e646d0aa18699a88d02ed9205380553b65;hp=c0c2ebbef580d167691c90dc61d7475ef6bc6633;hpb=b86d7b975629ae099ad9a137ced6f23b17c1531a;p=libguestfs.git diff --git a/Makefile.am b/Makefile.am index c0c2ebb..fb1d42b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -49,7 +49,9 @@ EXTRA_DIST = \ recipes/README \ recipes/*.html \ recipes/*.sh \ - recipes/*.example + recipes/*.example \ + html/recipes.css \ + make-recipes.sh # Build the root filesystem. # Currently this is arch-dependent, so it seems like putting it in @@ -141,38 +143,14 @@ html/guestfish.1.html: guestfish.pod guestfish-actions.pod --outfile $@ # Recipes web page. -html/recipes.html: $(wildcard recipes/*.sh) $(wildcard recipes/*.html) $(wildcard recipes/*.example) Makefile +html/recipes.html: $(wildcard recipes/*.sh) $(wildcard recipes/*.html) $(wildcard recipes/*.example) Makefile make-recipes.sh rm -f $@ $@-t - echo '
You can also find these in the recipes/
subdirectory of the source.
' >> $@-t; \ - sed -e 's,&,\&,g' -e 's,<,\<,g' -e 's,>,\>,g' < $$f >> $@-t; \ - echo '' >> $@-t; \ - if [ -r recipes/$$b.example ]; then \ - echo '
' >> $@-t; \ - sed -e 's,&,\&,g' -e 's,<,\<,g' -e 's,>,\>,g' < recipes/$$b.example >> $@-t; \ - echo '' >> $@-t; \ - fi; \ - done; \ - echo '' >> $@-t; \ + sh make-recipes.sh recipes/*.sh > $@-t mv $@-t $@ website: html/guestfs.3.html html/guestfish.1.html html/recipes.html - cp $^ html/pod.css $(HOME)/d/redhat/et-website/libguestfs/ + cp $^ html/pod.css html/recipes.css \ + $(HOME)/d/redhat/et-website/libguestfs/ # Generate the ChangeLog automatically from the gitlog.