[gnome-applets] build: fix builddir != srcdir



commit 604de1d5c99cae84d7726e38b0dcc78ccab9f280
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue May 31 19:05:26 2016 +0300

    build: fix builddir != srcdir

 Makefile.am |    2 +-
 autogen.sh  |    5 +++++
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 6034e37..ea72511 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -107,7 +107,7 @@ MAINTAINERCLEANFILES = \
        $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
        $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
        $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \ \
-       `find "m4" -type f -name "*.m4" -print` \
+       `find "$(srcdir)/m4" -type f -name "*.m4" -print` \
        $(srcdir)/INSTALL \
        $(srcdir)/build-aux/py-compile \
        $(srcdir)/config.h.in~ \
diff --git a/autogen.sh b/autogen.sh
index 6959909..cdac88c 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -11,6 +11,9 @@ if [ ! -f $srcdir/configure.ac ]; then
   exit 1
 fi
 
+olddir=$(pwd)
+cd "$srcdir"
+
 PKG_NAME=$(autoconf --trace 'AC_INIT:$1' "$srcdir/configure.ac")
 
 if [ "$#" = 0 ] && [ -z "$NOCONFIGURE" ]; then
@@ -26,6 +29,8 @@ intltoolize --force --copy --automake || exit 1
 autoreconf --verbose --force --install -Wno-portability || exit 1
 { set +x; } 2>/dev/null
 
+cd "$olddir"
+
 if [ -z "$NOCONFIGURE" ]; then
   set -x
   $srcdir/configure "$@" || exit 1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]