3 # pwi 2011-11-28 goal is to have a single source tree, being able to easily
4 # build it in several virtual guests which all have a read
5 # access to this source tree
6 # -> run-distcheck.sh and run-autogen.sh are only executed on the development
7 # boxes, while run-configure is meant to build from anywhere
8 # -> on the development box, _build and _install are subdirectories of the
10 # -> on the virtual guests, _build and _install are subdirectories of the
11 # current working directory
13 target
=${target:-normal}
14 srcdir
=$
(cd ${0%/*}; pwd)
16 # a nautilus-actions-x.y may remain after an aborted make distcheck
17 # such a directory breaks gnome-autogen.sh generation
19 for d
in $
(find ${srcdir} -maxdepth 1 -type d
-name 'nautilus-actions-*'); do
24 [ "${target}" = "normal" ] &&
26 --disable-deprecated \
28 --disable-html-manuals \
29 --disable-pdf-manuals \
32 # 'doc' mode: enable deprecated, manuals and gtk-doc
33 [ "${target}" = "doc" ] &&
37 --enable-gtk-doc-html \
38 --enable-gtk-doc-pdf \
39 --enable-html-manuals \
40 --enable-pdf-manuals \
43 # Build with Gtk+ 3 (actually a 2.97.x unstable version)
44 # installed in ~/.local/jhbuild
46 # Note that building with Gtk 3.0 not only requires that we have a
47 # Gtk+ 3 available library, but also that all our required libraries
48 # only depend of Gtk+ 3.0. In our case, we have:
49 # $ grep gtk+-2.0 /usr/lib/pkgconfig/*
50 # libnautilus-extension.pc:Requires: glib-2.0 gio-2.0 gtk+-2.0
51 # unique-1.0.pc:Requires: gtk+-2.0
53 #[ "${target}" = "jhbuild" ] &&
54 # export autogen_prefix=${HOME}/data/jhbuild/run &&
55 # PKG_CONFIG_PATH=${autogen_prefix}/lib/pkgconfig \
56 # LD_LIBRARY_PATH=${autogen_prefix}/lib \
58 # --prefix=${autogen_prefix} \
60 # --disable-schemas-install \
63 NOCONFIGURE
=1 ${srcdir}/autogen.sh
65 runconf
=${srcdir}/run-configure.sh
67 Generating ${runconf}"
72 # srcdir here is the root of the source directory
73 target=\${target:-normal}
74 srcdir=\$(cd \${0%/*}; pwd)
76 # heredir is the root of the _build/_install directories
79 mkdir -p \${heredir}/_build
82 \${srcdir}/configure \
83 --prefix=\${heredir}/_install \
85 --with-nautilus-extdir=\${heredir}/_install/lib/nautilus \
86 --disable-schemas-install \
87 --disable-scrollkeeper \
88 --enable-maintainer-mode \
94 echo "Executing ${runconf}