diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-08-23 19:16:56 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-08-23 19:16:56 -0700 |
commit | dff06e5d95ab36bdad52a2f6ef12329a02d76bf8 (patch) | |
tree | 5f775e3650510aca382e33b0bdc1c3b72fd6b240 /Makefile.am | |
parent | 35a680636b823436a48d2ca970ce730453520396 (diff) | |
download | connman-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.am | 24 |
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 |