2 # Copyright (C) 2010-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
23 Throbber.png Throbber.gif \
27 guestfs-browser.desktop.in \
29 guestfs-browser-large.png \
31 test-desktop-file-validate.sh \
34 CLEANFILES = *.cmi *.cmo *.cmx *.cmxa *.o guestfs-browser *~
38 # These are listed here in alphabetical order.
67 # Note this list must be in dependency order.
84 bin_SCRIPTS = guestfs-browser
87 -package libvirt,guestfs,hivex,lablgtk2,extlib,xml-light,camomile,threads,bitstring,bitstring.syntax -syntax bitstring
90 -warn-error CDEFLMPSUVYZX \
94 OCAMLOPTFLAGS = $(OCAMLCFLAGS)
101 guestfs-browser: $(OBJECTS)
102 $(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) \
103 -predicates init,threads \
104 -linkpkg gtkThread.cmx \
107 # This file is built. However gdk_pixbuf_mlsource requires X11 to
108 # run, which prevents this from being built in places where an X
109 # display is not available, such as on automated builders. So we'll
110 # bundle this file in with the tarball anyway.
111 throbber.ml: Throbber.png Throbber.gif
112 $(GDK_PIXBUF_MLSOURCE) --build-list \
113 static Throbber.png \
114 animation Throbber.gif \
118 $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) -c $< -o $@
120 $(OCAMLFIND) ocamlc $(OCAMLCFLAGS) -c $< -o $@
122 $(OCAMLFIND) ocamlopt $(OCAMLCFLAGS) -c $< -o $@
125 icondir = $(datadir)/$(PACKAGE_NAME)/pixmaps
126 icon_DATA = guestfs-browser.svg guestfs-browser-large.png guestfs-browser.png
129 desktopdir = $(datadir)/applications
130 desktop_DATA = guestfs-browser.desktop
132 guestfs-browser.desktop: guestfs-browser.desktop.in
133 $(SED) "s,\@icondir\@,$(icondir),g" < $< > $@
135 TESTS += test-desktop-file-validate.sh
138 man_MANS = guestfs-browser.1
142 guestfs-browser.1: guestfs-browser.pod
145 -c "Virtualization Support" \
146 --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \
150 html/guestfs-browser.1.html
152 html/guestfs-browser.1.html: guestfs-browser.pod
157 --outfile html/guestfs-browser.1.html \
162 # Maintainer website update.
164 html/guestfs-browser.1.html
166 WEBSITEDIR = $(HOME)/d/redhat/websites/libguestfs
168 website: $(HTMLFILES)
169 cp $(HTMLFILES) $(WEBSITEDIR)
171 CLEANFILES += $(HTMLFILES) pod2*.tmp
173 # Convert internal documentation to HTML.
177 $(OCAMLFIND) ocamldoc -d doc $(OCAMLDOCFLAGS) $(SOURCES)
182 .depend: $(wildcard *.mli) $(wildcard *.ml)
184 $(OCAMLFIND) ocamldep $(OCAMLPACKAGES) $^ | \
185 $(SED) -e :a -e '/ *\\$$/N; s/ *\\\n */ /; ta' | \