2 # Copyright (C) 2011 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 along
15 # with this program; if not, write to the Free Software Foundation, Inc.,
16 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 ACLOCAL_AMFLAGS = -I m4
28 CLEANFILES = *.cmi *.cmo *.cmx *.cmxa *.o virt-resize-ui *~
30 # These are listed here in alphabetical order.
54 # Note this list must be in dependency order.
67 XOBJECTS = $(OBJECTS:.cmo=.cmx)
69 bin_SCRIPTS = virt-resize-ui
72 -package threads,libvirt,guestfs,lablgtk2,extlib
75 -warn-error CDEFLMPSUVYZX \
89 virt-resize-ui: $(XOBJECTS)
90 $(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) \
91 -predicates init,threads \
92 -linkpkg gtkThread.cmx \
95 virt-resize-ui: $(OBJECTS)
96 $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) \
97 -predicates init,threads \
98 -linkpkg gtkThread.cmo \
103 $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) -c $< -o $@
105 $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) -c $< -o $@
107 $(OCAMLFIND) ocamlopt $(OCAMLCFLAGS) -c $< -o $@
110 man_MANS = virt-resize-ui.1
114 virt-resize-ui.1: virt-resize-ui.pod
117 -c "Virtualization Support" \
118 --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
122 html/virt-resize-ui.1.html
124 html/virt-resize-ui.1.html: virt-resize-ui.pod
129 --outfile html/virt-resize-ui.1.html \
134 # Maintainer website update.
136 html/virt-resize-ui.1.html
138 WEBSITEDIR = $(HOME)/d/redhat/websites/libguestfs
140 website: $(HTMLFILES)
141 cp $(HTMLFILES) $(WEBSITEDIR)
143 CLEANFILES += $(HTMLFILES) pod2*.tmp
145 # Convert internal documentation to HTML.
149 $(OCAMLFIND) ocamldoc -d doc $(OCAMLDOCFLAGS) $(SOURCES)
154 .depend: $(wildcard *.mli) $(wildcard *.ml)
155 $(OCAMLFIND) ocamldep $(OCAMLPACKAGES) $^ | \
156 $(SED) -e 's/ *$$//' | \
157 $(SED) -e :a -e '/ *\\$$/N; s/ *\\\n */ /; ta' | \