summaryrefslogtreecommitdiff
path: root/extras/collect
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-07-30 01:45:23 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-07-30 01:45:23 +0200
commit01618658fd82dbc5e6315b639f00e87c6fee3c54 (patch)
treedf8e628d04a81186d6d431fd3b1fa50a3d34987a /extras/collect
parent726687ad48bdececed1e7e44387c50e009e28208 (diff)
use autotools
Diffstat (limited to 'extras/collect')
-rw-r--r--extras/collect/Makefile.am11
-rw-r--r--extras/collect/collect.c4
2 files changed, 13 insertions, 2 deletions
diff --git a/extras/collect/Makefile.am b/extras/collect/Makefile.am
new file mode 100644
index 0000000000..a92f4aa9f5
--- /dev/null
+++ b/extras/collect/Makefile.am
@@ -0,0 +1,11 @@
+udevhomedir = $(udev_prefix)/lib/udev
+udevhome_PROGRAMS = \
+ collect
+
+AM_CPPFLAGS = \
+ -DSYSCONFDIR=\""$(sysconfdir)"\" \
+ -DUDEV_PREFIX=\""$(udev_prefix)"\"
+
+distclean-local:
+ rm -f Makefile.in
+
diff --git a/extras/collect/collect.c b/extras/collect/collect.c
index ce49b9f410..14184a5e05 100644
--- a/extras/collect/collect.c
+++ b/extras/collect/collect.c
@@ -31,9 +31,9 @@
#include <sys/types.h>
#include <sys/stat.h>
-#include "../../list.h"
+#include "../../udev/list.h"
-#define TMPFILE "/dev/.udev/collect"
+#define TMPFILE UDEV_PREFIX "/dev/.udev/collect"
#define BUFSIZE 16
#define UDEV_ALARM_TIMEOUT 180