+goaljobs.1: goaljobs.pod
+ $(POD2MAN) -c "Goaljobs" --release $(PACKAGE)-$(VERSION) $< > $@-t
+ mv $@-t $@
+
+goaljobs-reference.1: goaljobs-reference.pod
+ $(POD2MAN) -c "Goaljobs" --release $(PACKAGE)-$(VERSION) $< > $@-t
+ mv $@-t $@
+
+goaljobs.1.txt: goaljobs.pod
+ pod2text $< > $@-t
+ mv $@-t $@
+
+goaljobs-reference.1.txt: goaljobs-reference.pod
+ pod2text $< > $@-t
+ mv $@-t $@
+
+endif
+
+if HAVE_OCAMLDOC
+
+# HTML library documentation.
+# XXX The list below probably changes with every ocamldoc version.
+# How can we use a wildcard?
+doc_DATA = \
+ html/Goaljobs.html \
+ html/index_attributes.html \
+ html/index_classes.html \
+ html/index_class_types.html \
+ html/index_exceptions.html \
+ html/index.html \
+ html/index_methods.html \
+ html/index_modules.html \
+ html/index_module_types.html \
+ html/index_types.html \
+ html/index_values.html \
+ html/style.css \
+ html/type_Goaljobs.html
+
+$(doc_DATA): stamp-ocamldoc
+stamp-ocamldoc: goaljobs.mli goaljobs.ml
+ rm -f $@
+ $(OCAMLFIND) ocamldoc -html -d html $(OCAMLCPACKAGES) $^
+ touch $@
+
+endif
+
+# License check.