Commit bf1aa9e3 authored by John Stowers's avatar John Stowers

Autools support

parent a7eaa2f4
*.pyc
Makefile
Makefile.in
aclocal.m4
autom4te.cache/
config.log
config.status
configure
gtweak/defs.py
install-sh
missing
py-compile
bin_SCRIPTS = \
gnome-tweak-tool
#nobase means gtweak dir is preserved in site-packages
appdir = $(pythondir)
nobase_dist_app_PYTHON = \
$(wildcard $(srcdir)/gtweak/*.py) \
$(wildcard $(srcdir)/gtweak/tweaks/*.py)
guidir = $(pkgdatadir)
gui_DATA = \
data/shell.ui \
data/welcome.png
EXTRA_DIST = \
$(bin_SCRIPTS) \
$(gui_DATA)
dnl as-ac-expand.m4 0.2.0 -*- autoconf -*-
dnl autostars m4 macro for expanding directories using configure's prefix
dnl (C) 2003, 2004, 2005 Thomas Vander Stichele <thomas at apestaart dot org>
dnl Copying and distribution of this file, with or without modification,
dnl are permitted in any medium without royalty provided the copyright
dnl notice and this notice are preserved.
dnl AS_AC_EXPAND(VAR, CONFIGURE_VAR)
dnl example:
dnl AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
dnl will set SYSCONFDIR to /usr/local/etc if prefix=/usr/local
AC_DEFUN([AS_AC_EXPAND],
[
EXP_VAR=[$1]
FROM_VAR=[$2]
dnl first expand prefix and exec_prefix if necessary
prefix_save=$prefix
exec_prefix_save=$exec_prefix
dnl if no prefix given, then use /usr/local, the default prefix
if test "x$prefix" = "xNONE"; then
prefix="$ac_default_prefix"
fi
dnl if no exec_prefix given, then use prefix
if test "x$exec_prefix" = "xNONE"; then
exec_prefix=$prefix
fi
full_var="$FROM_VAR"
dnl loop until it doesn't change anymore
while true; do
new_full_var="`eval echo $full_var`"
if test "x$new_full_var" = "x$full_var"; then break; fi
full_var=$new_full_var
done
dnl clean up
full_var=$new_full_var
AC_SUBST([$1], "$full_var")
dnl restore prefix and exec_prefix
prefix=$prefix_save
exec_prefix=$exec_prefix_save
])
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
PKG_NAME="gnome-tweak-tool"
(test -f $srcdir/configure.ac \
&& test -f $srcdir/autogen.sh \
&& test -d $srcdir/gtweak) || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo " top-level $PKG_NAME directory"
exit 1
}
DIE=0
if ! which gnome-autogen.sh ; then
echo "You need to install the gnome-common module and make"
echo "sure the gnome-autogen.sh script is in your \$PATH."
exit 1
fi
. gnome-autogen.sh
AC_INIT([gnome-tweak-tool], [0.1], [john.stowers@gmail.com])
AM_INIT_AUTOMAKE([foreign])
AM_PATH_PYTHON
GLIB_GSETTINGS
DESKTOP_SCHEMAS_REQUIRED_VERSION=0.1.7
PYGOBJECT_REQUIRED_VERSION=2.27.91
PKG_CHECK_MODULES(GSETTINGS_DESKTOP_SCHEMAS, gsettings-desktop-schemas >= $DESKTOP_SCHEMAS_REQUIRED_VERSION)
PKG_CHECK_MODULES(DEPENDENCIES, pygobject-2.0 >= $PYGOBJECT_REQUIRED_VERSION)
AS_AC_EXPAND(DATADIR, "${datadir}")
AS_AC_EXPAND(PKGDATADIR, "${datadir}/${PACKAGE}")
AS_AC_EXPAND(GSETTINGSSCHEMADIR, "${gsettingsschemadir}")
AS_AC_EXPAND(TWEAKDIR, "${pythondir}/gtweak/tweaks")
AC_CONFIG_FILES([
Makefile
gtweak/defs.py
])
AC_OUTPUT
GSETTINGS_SCHEMA_DIR =
TWEAK_DIR =
DATA_DIR =
PKG_DATA_DIR =
DATA_DIR = "@DATADIR@"
PKG_DATA_DIR = "@PKGDATADIR@"
GSETTINGS_SCHEMA_DIR = "@GSETTINGSSCHEMADIR@"
TWEAK_DIR = "@TWEAKDIR@"
VERSION = "@VERSION@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment