summaryrefslogtreecommitdiffstats
path: root/virt-ctrl/Makefile.in
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2008-03-04 17:36:42 +0000
committerRichard W.M. Jones <rjones@redhat.com>2008-03-04 17:36:42 +0000
commit8b477fa331b9f787328fee754d7f249cb80bf4ea (patch)
tree5b312781b849b048add95f30272771939a8e4aa0 /virt-ctrl/Makefile.in
parent3e3e8e44348cc43d667121efd24829ede80b8530 (diff)
downloadvirt-top-8b477fa331b9f787328fee754d7f249cb80bf4ea.tar.gz
virt-top-8b477fa331b9f787328fee754d7f249cb80bf4ea.tar.xz
virt-top-8b477fa331b9f787328fee754d7f249cb80bf4ea.zip
Added support for compiled-in icons from a GNOME theme.
Diffstat (limited to 'virt-ctrl/Makefile.in')
-rw-r--r--virt-ctrl/Makefile.in23
1 files changed, 22 insertions, 1 deletions
diff --git a/virt-ctrl/Makefile.in b/virt-ctrl/Makefile.in
index 6d68437..1b4e529 100644
--- a/virt-ctrl/Makefile.in
+++ b/virt-ctrl/Makefile.in
@@ -21,11 +21,16 @@ prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
+with_icons = @with_icons@
+icons = @icons@
+
+HAVE_GDK_PIXBUF_MLSOURCE = @HAVE_GDK_PIXBUF_MLSOURCE@
+
pkg_dbus = @pkg_dbus@
OCAMLFIND = @OCAMLFIND@
-OBJS := \
+OBJS += \
vc_helpers.cmo \
vc_connections.cmo \
vc_domain_ops.cmo \
@@ -33,6 +38,7 @@ OBJS := \
vc_mainwindow.cmo
ifneq ($(OCAMLFIND),)
+# Good, we have ocamlfind.
OCAMLCPACKAGES := -I ../libvirt -package unix,lablgtk2
ifeq ($(pkg_dbus),yes)
OCAMLCPACKAGES := $(OCAMLCPACKAGES),dbus
@@ -44,6 +50,7 @@ OCAMLOPTPACKAGES := $(OCAMLCPACKAGES)
OCAMLOPTFLAGS :=
OCAMLOPTLIBS := $(OCAMLCLIBS)
else
+# Bad boy, please install ocamlfind.
OCAMLCINCS := -I ../libvirt -I @pkg_lablgtk2@
OCAMLCFLAGS := -g
OCAMLCLIBS := unix.cma lablgtk.cma
@@ -52,6 +59,10 @@ OCAMLOPTFLAGS :=
OCAMLOPTLIBS := unix.cmxa lablgtk.cmxa
endif
+ifneq ($(with_icons),no)
+OBJS += vc_icons.cmo
+endif
+
export LIBRARY_PATH=../libvirt
export LD_LIBRARY_PATH=../libvirt
@@ -101,6 +112,16 @@ virt-ctrl.opt: $(XOBJS) gcc.exe
endif
endif
+# Rebuild the icons if newer ones available.
+ifneq ($(with_icons),no)
+ifneq ($(icons),)
+ifeq ($(HAVE_GDK_PIXBUF_MLSOURCE),gdk-pixbuf-mlsource)
+vc_icons.ml: rebuild-icons.sh
+ ./rebuild-icons.sh $(icons) > $@
+endif
+endif
+endif
+
install:
if [ -x virt-ctrl.opt ]; then \
mkdir -p $(DESTDIR)$(bindir); \