-man_MANS = \
- febootstrap.8
-
-bin_SCRIPTS = febootstrap
-
-SOURCES_ML = $(filter %.ml,$(SOURCES))
-BOBJECTS = $(SOURCES_ML:.ml=.cmo)
-XOBJECTS = $(SOURCES_ML:.ml=.cmx)
-
-if !HAVE_OCAMLOPT
-OBJECTS = $(BOBJECTS)
-else
-OBJECTS = $(XOBJECTS)
-endif
-
-OCAMLPACKAGES = -package unix,str
-OCAMLFLAGS = -warn-error CDEFLMPSUVXYZ
-
-febootstrap: $(OBJECTS)
- $(OCAMLFIND) $(OCAMLBEST) $(OCAMLFLAGS) $(OCAMLPACKAGES) -linkpkg \
- $^ -o $@
-
-.mli.cmi:
- $(OCAMLFIND) ocamlc $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@
-.ml.cmo:
- $(OCAMLFIND) ocamlc $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@
-.ml.cmx:
- $(OCAMLFIND) ocamlopt $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@
-
-depend: .depend
-
-.depend: $(SOURCES)
- rm -f $@ $@-t
- $(OCAMLFIND) ocamldep $^ > $@-t
- mv $@-t $@
-
-include .depend
-
-SUFFIXES = .cmo .cmi .cmx .ml .mli .mll .mly
-
-if HAVE_PERLDOC
-
-febootstrap.8: febootstrap.pod
- pod2man \
- --section 8 \
- -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
-