summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-08-23 19:16:56 -0700
committerMarcel Holtmann <marcel@holtmann.org>2009-08-23 19:16:56 -0700
commitdff06e5d95ab36bdad52a2f6ef12329a02d76bf8 (patch)
tree5f775e3650510aca382e33b0bdc1c3b72fd6b240 /Makefile.am
parent35a680636b823436a48d2ca970ce730453520396 (diff)
downloadconnman-dff06e5d95ab36bdad52a2f6ef12329a02d76bf8.tar.gz
connman-dff06e5d95ab36bdad52a2f6ef12329a02d76bf8.tar.bz2
connman-dff06e5d95ab36bdad52a2f6ef12329a02d76bf8.zip
Fix maintainer mode and script directory location
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am24
1 files changed, 16 insertions, 8 deletions
diff --git a/Makefile.am b/Makefile.am
index 6579a818..086de010 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -69,19 +69,27 @@ CLEANFILES = src/connman.ver src/connman.exp src/connman.conf \
statedir = $(localstatedir)/run/connman
-storagedir = $(localstatedir)/lib/connman
-
plugindir = $(libdir)/connman/plugins
scriptdir = $(libdir)/connman/scripts
+storagedir = $(localstatedir)/lib/connman
+
+if MAINTAINER_MODE
+build_plugindir = $(abs_top_srcdir)/plugins/.libs
+build_scriptdir = $(abs_top_srcdir)/scripts
+else
+build_plugindir = $(plugindir)
+build_scriptdir = $(scriptdir)
+endif
+
AM_CFLAGS = @UDEV_CFLAGS@ @NETLINK_CFLAGS@ @DBUS_CFLAGS@ \
- @GLIB_CFLAGS@ @GTHREAD_CFLAGS@ $(builtin_cflags) \
- -DCONNMAN_PLUGIN_BUILTIN \
- -DSTATEDIR=\""$(statedir)"\" \
- -DPLUGINDIR=\""$(plugindir)"\" \
- -DSCRIPTDIR=\""$(scriptdir)"\" \
- -DSTORAGEDIR=\""$(storagedir)\""
+ @GLIB_CFLAGS@ @GTHREAD_CFLAGS@ $(builtin_cflags) \
+ -DCONNMAN_PLUGIN_BUILTIN \
+ -DSTATEDIR=\""$(statedir)"\" \
+ -DPLUGINDIR=\""$(build_plugindir)"\" \
+ -DSCRIPTDIR=\""$(build_scriptdir)"\" \
+ -DSTORAGEDIR=\""$(storagedir)\""
INCLUDES = -I$(builddir)/include -I$(builddir)/src -I$(srcdir)/gdbus