2 # Copyright (C) 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 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
23 Throbber.png Throbber.gif \
24 .gitignore guestfs-browser.spec \
29 CLEANFILES = *.cmi *.cmo *.cmx *.o guestfs-browser
31 # These are listed here in alphabetical order.
56 # Note this list must be in dependency order.
71 bin_SCRIPTS = guestfs-browser
74 -package libvirt,guestfs,hivex,lablgtk2,extlib,xml-light,camomile,threads,bitstring,bitstring.syntax -syntax bitstring
77 -warn-error CDEFLMPSUVYZX \
81 OCAMLOPTFLAGS = $(OCAMLCFLAGS)
88 guestfs-browser: $(OBJECTS)
89 $(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) \
90 -predicates init,threads \
91 -linkpkg gtkThread.cmx \
94 # This file is built. However gdk_pixbuf_mlsource requires X11 to
95 # run, which prevents this from being built in places where an X
96 # display is not available, such as on automated builders. So we'll
97 # bundle this file in with the tarball anyway.
98 throbber.ml: Throbber.png Throbber.gif
99 $(GDK_PIXBUF_MLSOURCE) --build-list \
100 static Throbber.png \
101 animation Throbber.gif \
105 $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) -c $< -o $@
107 $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) -c $< -o $@
109 $(OCAMLFIND) ocamlopt $(OCAMLCFLAGS) -c $< -o $@
112 man_MANS = guestfs-browser.1
116 guestfs-browser.1: guestfs-browser.pod
119 -c "Virtualization Support" \
120 --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
124 html/guestfs-browser.1.html
126 html/guestfs-browser.1.html: guestfs-browser.pod
131 --outfile html/guestfs-browser.1.html \
136 # Maintainer website update.
138 html/guestfs-browser.1.html
140 WEBSITEDIR = $(HOME)/d/redhat/websites/libguestfs
142 website: $(HTMLFILES)
143 cp $(HTMLFILES) $(WEBSITEDIR)
145 CLEANFILES += $(HTMLFILES) pod2*.tmp
147 # Convert internal documentation to HTML.
151 $(OCAMLFIND) ocamldoc -d doc $(OCAMLDOCFLAGS) $(SOURCES)
156 .depend: $(wildcard *.mli) $(wildcard *.ml)
158 $(OCAMLFIND) ocamldep $(OCAMLPACKAGES) $^ | \
159 $(SED) -e :a -e '/ *\\$$/N; s/ *\\\n */ /; ta' | \