summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am6
-rw-r--r--configure.ac3
2 files changed, 4 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am
index 3f33a80..068eaa4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,9 +2,11 @@
ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = devkit-power-gobject libupower-glib src doc tools policy po $(UDEV_RULES)
+SUBDIRS = devkit-power-gobject libupower-glib src doc tools policy po
-DIST_SUBDIRS = devkit-power-gobject libupower-glib src doc tools policy po rules
+if BACKEND_TYPE_LINUX
+SUBDIRS += rules
+endif
# Creating ChangeLog from git log (taken from cairo/Makefile.am):
ChangeLog: $(srcdir)/ChangeLog
diff --git a/configure.ac b/configure.ac
index 95f288d..e0c214e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -164,7 +164,6 @@ dnl ---------------------------------------------------------------------------
AC_ARG_WITH([backend],
AS_HELP_STRING([--with-backend=<option>],
[Default backend to use linux, freebsd, dummy (dummy)]))
-UDEV_RULES=
# default to a sane option
if test x$with_backend = x; then
if test -e /usr/include/gudev-1.0/gudev/gudev.h ; then
@@ -187,9 +186,7 @@ if test x$with_backend = xlinux; then
dnl Check libusb also
AC_CHECK_HEADERS(usb.h, , [AC_MSG_ERROR([Can't find usb.h. Please install libusb.])])
AC_CHECK_LIB([usb], [usb_find_devices], [], [AC_MSG_ERROR([Can't use libusb.])])
- UDEV_RULES="rules"
fi
-AC_SUBST(UDEV_RULES)
# export to Makefile.am
AM_CONDITIONAL(BACKEND_TYPE_DUMMY, [test x$with_backend = xdummy])