linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ] build: Fix make distcheck for input plugin
@ 2012-11-12 21:03 Anderson Lizardo
  2012-11-13  8:05 ` Johan Hedberg
  2012-11-13 12:21 ` Lucas De Marchi
  0 siblings, 2 replies; 8+ messages in thread
From: Anderson Lizardo @ 2012-11-12 21:03 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Anderson Lizardo

suspend.c is a symlink generated at build time, therefore it should be
created on build directory. Additionally, it is necessary to add
-I$(srcdir)/profiles/input to CPPFLAGS so suspend.h can be found (the
compiler does not follow symlinks prior to resolving #include
directives).
---
 Makefile.am |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index d49e8a0..c398e74 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -366,6 +366,10 @@ if MCAP
 AM_CPPFLAGS += -I$(builddir)/health
 endif
 
+if HOGPLUGIN
+AM_CPPFLAGS += -I$(srcdir)/profiles/input
+endif
+
 unit_objects =
 
 if TEST
@@ -405,7 +409,7 @@ profiles/sap/sap.c: profiles/sap/@SAP_DRIVER@
 	$(AM_V_GEN)$(LN_S) $(abs_top_srcdir)/$< $@
 
 profiles/input/suspend.c: profiles/input/@HOG_SUSPEND_DRIVER@
-	$(AM_V_GEN)$(LN_S) $(abs_top_srcdir)/$< $@
+	$(AM_V_GEN)$(LN_S) $(abs_top_builddir)/$< $@
 
 scripts/%.rules:
 	$(AM_V_GEN)cp $(subst 97-,,$@) $@
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-11-13 13:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-12 21:03 [PATCH BlueZ] build: Fix make distcheck for input plugin Anderson Lizardo
2012-11-13  8:05 ` Johan Hedberg
2012-11-13 12:21 ` Lucas De Marchi
2012-11-13 12:52   ` Anderson Lizardo
2012-11-13 12:55     ` Lucas De Marchi
2012-11-13 13:02       ` Anderson Lizardo
2012-11-13 12:57     ` Szymon Janc
2012-11-13 13:06       ` Anderson Lizardo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).