automake automatically defines includedir to the base include directory
and pkgincludedir to ./@PACKAGE@ from there. So lets use the later one
instead of overriding automake.
---
 Makefile.am |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index da59be7..c1c34ca 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,9 +1,7 @@
 
 AM_MAKEFLAGS = --no-print-directory
 
-includedir = @includedir@/ofono
-
-include_HEADERS = include/log.h include/plugin.h include/history.h \
+pkginclude_HEADERS = include/log.h include/plugin.h include/history.h \
                        include/dbus.h include/modem.h include/types.h \
                        include/call-barring.h include/call-forwarding.h \
                        include/call-meter.h include/call-settings.h \
@@ -17,9 +15,10 @@ include_HEADERS = include/log.h include/plugin.h 
include/history.h \
                        include/ctm.h include/cdma-voicecall.h \
                        include/cdma-sms.h
 
-nodist_include_HEADERS = include/version.h
+nodist_pkginclude_HEADERS = include/version.h
 
-local_headers = $(foreach file,$(include_HEADERS) $(nodist_include_HEADERS), \
+local_headers = $(foreach file,$(pkginclude_HEADERS) \
+                               $(nodist_pkginclude_HEADERS), \
                                        include/ofono/$(notdir $(file)))
 
 
-- 
1.7.1

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to