From 4b3087eb7d016dfa21722e8dff437784251ab55e Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Sun, 25 Nov 2012 19:44:28 -0500 Subject: Fix up building gudev and introspection under make distcheck This commit makes sure that src/gudev/gudevprivate.h is included in the distribution, fixing a failure in building gudev with `make distcheck`. There's also some code cleanup and migration of all configurable paths to the main configure.ac file. Signed-off-by: Anthony G. Basile --- src/gudev/Makefile.am | 36 +++++++++++++----------------------- 1 file changed, 13 insertions(+), 23 deletions(-) (limited to 'src/gudev/Makefile.am') diff --git a/src/gudev/Makefile.am b/src/gudev/Makefile.am index 6ad768cd62..eb6e017ac1 100644 --- a/src/gudev/Makefile.am +++ b/src/gudev/Makefile.am @@ -1,13 +1,9 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} -if ENABLE_GUDEV LIBGUDEV_CURRENT=1 LIBGUDEV_REVISION=2 LIBGUDEV_AGE=1 -libgudev_includedir = \ - $(includedir)/gudev-1.0/gudev - libgudev_include_HEADERS = \ gudev.h \ gudevenums.h \ @@ -17,6 +13,16 @@ libgudev_include_HEADERS = \ gudevdevice.h \ gudevenumerator.h +EXTRA_DIST = \ + gudev-1.0.pc.in \ + gudevmarshal.list \ + gudevprivate.h \ + gudevenumtypes.h.template \ + gudevenumtypes.c.template \ + gjs-example.js \ + seed-example-enum.js \ + seed-example.js + lib_LTLIBRARIES = \ libgudev-1.0.la @@ -27,27 +33,25 @@ CLEANFILES = \ gudev-1.0.pc libgudev_1_0_la_SOURCES = \ - gudevenumtypes.h\ gudevenumtypes.c\ gudevclient.c \ gudevdevice.c \ gudevenumerator.c nodist_libgudev_1_0_la_SOURCES = \ - gudevmarshal.h \ gudevmarshal.c BUILT_SOURCES = \ + gudevenumtypes.h\ + gudevmarshal.h \ $(nodist_libgudev_1_0_la_SOURCES) libgudev_1_0_la_CPPFLAGS = \ $(AM_CPPFLAGS) \ - -I$(top_builddir)/src\ -I$(top_srcdir)/src\ + -I$(top_srcdir)/src/libudev \ -I$(top_builddir)/src/gudev \ -I$(top_srcdir)/src/gudev \ - -I$(top_builddir)/src/libudev \ - -I$(top_srcdir)/src/libudev \ -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \ -D_GUDEV_COMPILATION \ -DG_LOG_DOMAIN=\"GUdev\" @@ -100,7 +104,6 @@ GUdev_1_0_gir_CFLAGS = \ -D_GUDEV_COMPILATION \ -D_GUDEV_WORK_AROUND_DEV_T_BUG \ -I$(top_srcdir)/src \ - -I$(top_builddir)/src \ -I$(top_srcdir)/src/gdev \ -I$(top_builddir)/src/gdev @@ -130,11 +133,9 @@ INTROSPECTION_GIRS = \ INTROSPECTION_SCANNER_ARGS = \ --c-include=gudev.h -girdir = $(datadir)/gir-1.0 gir_DATA = \ GUdev-1.0.gir -typelibsdir = $(libdir)/girepository-1.0 typelibs_DATA = \ GUdev-1.0.typelib @@ -162,14 +163,3 @@ INSTALL_EXEC_HOOKS = \ UNINSTALL_EXEC_HOOKS = \ libgudev-uninstall-move-hook -endif - -EXTRA_DIST = \ - gudev-1.0.pc.in \ - gudevmarshal.list \ - gudevenumtypes.h.template \ - gudevenumtypes.c.template \ - gjs-example.js \ - seed-example-enum.js \ - seed-example.js - -- cgit v1.2.3-54-g00ecf