1 # Makefile for udev extra invoked from the udev main Makefile
3 # Copyright (C) 2004-2005 Kay Sievers <kay.sievers@vrfy.org>
5 # Released under the GNU General Public License, version 2.
7 PROG = udev_run_devd udev_run_hotplugd
14 etcdir = ${prefix}/etc
15 sbindir = ${prefix}/sbin
16 usrbindir = ${prefix}/usr/bin
17 usrsbindir = ${prefix}/usr/sbin
18 libudevdir = ${prefix}/lib/udev
19 mandir = ${prefix}/usr/share/man
20 configdir = ${etcdir}/udev/
23 INSTALL_PROGRAM = ${INSTALL}
24 INSTALL_DATA = ${INSTALL} -m 644
25 INSTALL_SCRIPT = ${INSTALL}
27 all: $(PROG) $(MAN_PAGES)
31 %.o: %.c $(GEN_HEADERS)
33 $(Q) $(CC) -c $(CFLAGS) $< -o $@
35 $(PROG): %: $(HEADERS) %.o $(OBJS)
37 $(Q) $(LD) $(LDFLAGS) $@.o $(OBJS) -o $@ $(LIBUDEV) $(LIB_OBJS)
47 $(Q) rm -f $(PROG) $(OBJS) $(GEN_HEADERS)
51 $(INSTALL_PROGRAM) -D udev_run_devd $(DESTDIR)$(libudevdir)/udev_run_devd
52 $(INSTALL_PROGRAM) -D udev_run_hotplugd $(DESTDIR)$(libudevdir)/udev_run_hotplugd
56 - rm $(DESTDIR)$(libudevdir)/udev_run_devd
57 - rm $(DESTDIR)$(libudevdir)/udev_run_hotplugd
61 @echo "Please create a man page for this tool."
65 @echo "Please create a man page for this tool."
69 @echo "no config file to install"
70 .PHONY: install-config