aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-03-14 22:58:33 +0800
committerXan Lopez <xan@igalia.com>2012-03-14 23:01:32 +0800
commit3b6eaf03d1bb27ef42bd500a34799b82acf47c61 (patch)
tree8304db7f307747d11e2aecf38164247ba5a2422a /lib
parent63d0dca04581603d862d3fd74e83c992b5c8baec (diff)
downloadgsoc2013-epiphany-3b6eaf03d1bb27ef42bd500a34799b82acf47c61.tar
gsoc2013-epiphany-3b6eaf03d1bb27ef42bd500a34799b82acf47c61.tar.gz
gsoc2013-epiphany-3b6eaf03d1bb27ef42bd500a34799b82acf47c61.tar.bz2
gsoc2013-epiphany-3b6eaf03d1bb27ef42bd500a34799b82acf47c61.tar.lz
gsoc2013-epiphany-3b6eaf03d1bb27ef42bd500a34799b82acf47c61.tar.xz
gsoc2013-epiphany-3b6eaf03d1bb27ef42bd500a34799b82acf47c61.tar.zst
gsoc2013-epiphany-3b6eaf03d1bb27ef42bd500a34799b82acf47c61.zip
Fix distcheck
Most data files are listed through EXTRA_DIST, so they are left in the top srcdir during VPATH builds. The new EphyWebView unit test needs data/pages/error.html, so distcheck was broken because ephy_file ("error.html") was failing since it looked for them in $pwd/data. To fix this, look for files in the top srcdir instead of $pwd/data, which will lead to the builddir data data dir during distcheck.
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.am1
-rw-r--r--lib/ephy-file-helpers.c11
2 files changed, 7 insertions, 5 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index c3965bd00..b98c70564 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -85,6 +85,7 @@ libephymisc_la_CPPFLAGS = \
-I$(top_srcdir)/lib/egg \
-DDATADIR="\"$(datadir)\"" \
-DSHARE_DIR=\"$(pkgdatadir)\" \
+ -DTOP_SRC_DATADIR=\"$(top_srcdir)/data\" \
-DEXTENSIONS_DIR=\""$(libdir)/epiphany/$(EPIPHANY_API_VERSION)/extensions"\" \
$(AM_CPPFLAGS)
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index 80d30e06d..7c3612be9 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -223,14 +223,15 @@ ephy_file (const char *filename)
static const char * const paths[] =
{
#ifdef GNOME_ENABLE_DEBUG
- SHARE_UNINSTALLED_DIR "/",
- SHARE_UNINSTALLED_DIR "/glade/",
- SHARE_UNINSTALLED_DIR "/ui/",
- SHARE_UNINSTALLED_DIR "/art/",
- SHARE_UNINSTALLED_DIR "/pages/",
+ TOP_SRC_DATADIR "/",
+ TOP_SRC_DATADIR "/glade/",
+ TOP_SRC_DATADIR "/ui/",
+ TOP_SRC_DATADIR "/art/",
+ TOP_SRC_DATADIR "/pages/",
#endif
SHARE_DIR "/",
SHARE_DIR "/glade/",
+ SHARE_DIR "/ui/",
SHARE_DIR "/art/",
SHARE_DIR "/pages/"
};