cmdline.mli \
cmdline.ml \
config.mli \
- config.ml \
deviceSet.mli \
deviceSet.ml \
filetree.mli \
window.mli \
window.ml
+BUILT_SOURCES = \
+ config.ml
+
# Note this list must be in dependency order.
OBJECTS = \
config.cmo \
desktopdir = $(datadir)/applications
desktop_DATA = guestfs-browser.desktop
-guestfs-browser.desktop: guestfs-browser.desktop.in
- $(SED) "s,\@icondir\@,$(icondir),g" < $< > $@
+guestfs-browser.desktop: guestfs-browser.desktop.in Makefile
+ $(SED) "s,\@icondir\@,$(icondir),g" < $< > $@-t
+ mv $@-t $@
TESTS += test-desktop-file-validate.sh
+# Config. Can't use autoconf to build this because we want
+# to embed the true icondir path.
+config.ml: config.ml.in Makefile
+ < $< \
+ $(SED) \
+ -e "s,\@PACKAGE_NAME\@,$(PACKAGE_NAME),g" \
+ -e "s,\@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g" \
+ -e "s,\@HIVEXREGEDIT\@,$(HIVEXREGEDIT),g" \
+ -e "s,\@OPENER\@,$(OPENER),g" \
+ -e "s,\@icondir\@,$(icondir),g" \
+ > $@-t
+ mv $@-t $@
+
# Man page.
man_MANS = guestfs-browser.1
(* Guestfs Browser.
- * Copyright (C) 2010 Red Hat Inc.
+ * Copyright (C) 2010-2011 Red Hat Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*)
-(** Configuration supplied by autoconf.
-
- This module is generated by running [./configure], and
- contains miscellaneous compile-time constants. *)
+(** Configuration. *)
val package : string
(** The package name. *)
+
val version : string
(** The version number as a string. *)
val opener : string option
(** External program for viewing files, or None if not available. *)
+
+val icondir : string
+ (** The icon directory. *)
AM_CONDITIONAL([HAVE_PERLDOC],[test "x$PERLDOC" != "xno"])
AC_CONFIG_HEADERS([config.h])
-AC_CONFIG_FILES([Makefile config.ml])
+AC_CONFIG_FILES([Makefile])
AC_OUTPUT