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
52 bin_SCRIPTS = febootstrap
54 SOURCES_ML = $(filter %.ml,$(SOURCES))
55 BOBJECTS = $(SOURCES_ML:.ml=.cmo)
56 XOBJECTS = $(SOURCES_ML:.ml=.cmx)
64 OCAMLPACKAGES = -package unix,str
65 OCAMLFLAGS = -warn-error CDEFLMPSUVXYZ
67 febootstrap: $(OBJECTS)
68 $(OCAMLFIND) $(OCAMLBEST) $(OCAMLFLAGS) $(OCAMLPACKAGES) -linkpkg \
72 $(OCAMLFIND) ocamlc $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@
74 $(OCAMLFIND) ocamlc $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@
76 $(OCAMLFIND) ocamlopt $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@
82 $(OCAMLFIND) ocamldep $^ > $@-t
87 SUFFIXES = .cmo .cmi .cmx .ml .mli .mll .mly
91 febootstrap.8: febootstrap.pod
94 -c "Virtualization Support" \
95 --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \