Let the network drivers set connection state via idle callback
[connman] / include / Makefile.am
index 84eece9..f8e9e73 100644 (file)
@@ -4,12 +4,20 @@ includedir = @includedir@/connman
 include_HEADERS = types.h log.h plugin.h security.h resolver.h \
                                        storage.h device.h network.h
 
+nodist_include_HEADERS = version.h
+
 noinst_HEADERS = driver.h element.h property.h ipv4.h rtnl.h dbus.h
 
 MAINTAINERCLEANFILES = Makefile.in
 
 all-local:
-       @if [ ! -e connman ] ; then $(LN_S) $(top_srcdir)/include connman ; fi
+       @if [ ! -e connman ]; then \
+         mkdir connman; \
+         list='$(include_HEADERS) $(noinst_HEADERS)'; for i in $$list; \
+           do $(LN_S) $(abs_top_srcdir)/include/$$i connman/$$i; done; \
+         list='$(nodist_include_HEADERS)'; for i in $$list; \
+           do $(LN_S) $(abs_top_builddir)/include/$$i connman/$$i; done; \
+       fi
 
 clean-local:
-       @rm -f connman
+       @rm -rf connman