Version 3.9.
[febootstrap.git] / Makefile.am
index d04412c..7ac5079 100644 (file)
@@ -24,10 +24,10 @@ SUBDIRS = lib helper
 # Note these must be in build dependency order.
 SOURCES = \
        config.ml \
-       febootstrap_utils.mli \
-       febootstrap_utils.ml \
        febootstrap_cmdline.mli \
        febootstrap_cmdline.ml \
+       febootstrap_utils.mli \
+       febootstrap_utils.ml \
        febootstrap_package_handlers.mli \
        febootstrap_package_handlers.ml \
        febootstrap_yum_rpm.ml \
@@ -43,6 +43,7 @@ EXTRA_DIST = \
        autogen.sh \
        febootstrap.8 \
        febootstrap.pod \
+       html/pod.css \
        m4/gnulib-cache.m4 \
        $(SOURCES)
 
@@ -57,15 +58,17 @@ XOBJECTS = $(SOURCES_ML:.ml=.cmx)
 
 if !HAVE_OCAMLOPT
 OBJECTS = $(BOBJECTS)
+BEST    = c
 else
 OBJECTS = $(XOBJECTS)
+BEST    = opt
 endif
 
 OCAMLPACKAGES = -package unix,str
 OCAMLFLAGS = -warn-error CDEFLMPSUVXYZ
 
 febootstrap: $(OBJECTS)
-       $(OCAMLFIND) $(OCAMLBEST) $(OCAMLFLAGS) $(OCAMLPACKAGES) -linkpkg \
+       $(OCAMLFIND) $(BEST) $(OCAMLFLAGS) $(OCAMLPACKAGES) -linkpkg \
          $^ -o $@
 
 .mli.cmi:
@@ -94,4 +97,28 @@ febootstrap.8: febootstrap.pod
          -c "Virtualization Support" \
          --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
          $< > $@
+
+noinst_DATA = \
+       html/febootstrap.8.html
+
+html/febootstrap.8.html: febootstrap.pod
+       mkdir -p html
+       pod2html \
+         --css 'pod.css' \
+         --htmldir html \
+         --outfile html/febootstrap.8.html \
+         febootstrap.pod
+
 endif
+
+# Maintainer website update.
+HTMLFILES = \
+       html/febootstrap.8.html \
+       html/febootstrap-supermin-helper.8.html
+
+WEBSITEDIR = $(HOME)/d/redhat/websites/libguestfs
+
+website: $(HTMLFILES)
+       cp $(HTMLFILES) $(WEBSITEDIR)
+
+CLEANFILES += $(HTMLFILES) pod2*.tmp