1 # febootstrap Makefile.am
2 # (C) Copyright 2009-2010 Red Hat Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 # Written by Richard W.M. Jones <rjones@redhat.com>
20 ACLOCAL_AMFLAGS = -I m4
24 # Note these must be in build dependency order.
27 febootstrap_utils.mli \
28 febootstrap_utils.ml \
29 febootstrap_cmdline.mli \
30 febootstrap_cmdline.ml \
31 febootstrap_package_handlers.mli \
32 febootstrap_package_handlers.ml \
33 febootstrap_yum_rpm.ml \
34 febootstrap_debian.ml \
35 febootstrap_pacman.ml \
38 CLEANFILES = *~ *.cmi *.cmo *.cmx *.o febootstrap
53 bin_SCRIPTS = febootstrap
55 SOURCES_ML = $(filter %.ml,$(SOURCES))
56 BOBJECTS = $(SOURCES_ML:.ml=.cmo)
57 XOBJECTS = $(SOURCES_ML:.ml=.cmx)
65 OCAMLPACKAGES = -package unix,str
66 OCAMLFLAGS = -warn-error CDEFLMPSUVXYZ
68 febootstrap: $(OBJECTS)
69 $(OCAMLFIND) $(OCAMLBEST) $(OCAMLFLAGS) $(OCAMLPACKAGES) -linkpkg \
73 $(OCAMLFIND) ocamlc $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@
75 $(OCAMLFIND) ocamlc $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@
77 $(OCAMLFIND) ocamlopt $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@
83 $(OCAMLFIND) ocamldep $^ > $@-t
88 SUFFIXES = .cmo .cmi .cmx .ml .mli .mll .mly
92 febootstrap.8: febootstrap.pod
95 -c "Virtualization Support" \
96 --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
100 html/febootstrap.8.html
102 html/febootstrap.8.html: febootstrap.pod
107 --outfile html/febootstrap.8.html \
112 # Maintainer website update.
114 html/febootstrap.8.html \
115 html/febootstrap-supermin-helper.8.html
117 WEBSITEDIR = $(HOME)/d/redhat/websites/libguestfs
119 website: $(HTMLFILES)
120 cp $(HTMLFILES) $(WEBSITEDIR)
122 CLEANFILES += $(HTMLFILES) pod2*.tmp