chiark / gitweb /
really really fix both in-tree and out-of-tree builds
authorKay Sievers <kay.sievers@vrfy.org>
Thu, 3 Dec 2009 12:58:18 +0000 (13:58 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Thu, 3 Dec 2009 12:58:18 +0000 (13:58 +0100)
The include is still missing:
  GEN    extras/gudev/GUdev-1.0.gir
  In file included from <stdin>:4:
  /home/kay/work/src/udev/extras/gudev/gudev.h:26:34: error: gudev/gudevenumtypes.h: No such file or directory

Also prepend $(builddir).

Makefile.am

index 4dfab56..83ecb74 100644 (file)
@@ -384,12 +384,13 @@ extras/gudev/GUdev-1.0.gir: extras/gudev/libgudev-1.0.la $(G_IR_SCANNER) Makefil
                --pkg=glib-2.0 \
                --pkg=gobject-2.0 \
                -I$(top_srcdir)/extras \
+               -I$(top_builddir)/extras \
                -D_GUDEV_COMPILATION \
                -D_GUDEV_WORK_AROUND_DEV_T_BUG \
                $(top_srcdir)/extras/gudev/gudev.h \
                $(top_srcdir)/extras/gudev/gudevtypes.h \
                $(top_srcdir)/extras/gudev/gudevenums.h \
-               $(or $(wildcard extras/gudev/gudevenumtypes.h),$(top_srcdir)/extras/gudev/gudevenumtypes.h) \
+               $(or $(wildcard $(top_srcdir)/extras/gudev/gudevenumtypes.h),$(top_builddir)/extras/gudev/gudevenumtypes.h) \
                $(top_srcdir)/extras/gudev/gudevclient.h \
                $(top_srcdir)/extras/gudev/gudevdevice.h \
                $(top_srcdir)/extras/gudev/gudevclient.c \