chiark / gitweb /
run_directory: add final warning before removal
[elogind.git] / extras / run_directory / Makefile
1 # Makefile for udev extra invoked from the udev main Makefile
2 #
3 # Copyright (C) 2004-2005 Kay Sievers <kay.sievers@vrfy.org>
4 #
5 # Released under the GNU General Public License, version 2.
6 #
7 PROG = udev_run_devd udev_run_hotplugd
8 OBJS = run_directory.o
9 HEADERS =
10 GEN_HEADERS =
11 MAN_PAGES =
12
13 prefix =
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/
21
22 INSTALL = install -c
23 INSTALL_PROGRAM = ${INSTALL}
24 INSTALL_DATA  = ${INSTALL} -m 644
25 INSTALL_SCRIPT = ${INSTALL}
26
27 all: $(PROG) $(MAN_PAGES)
28 .PHONY: all
29 .DEFAULT: all
30
31 %.o: %.c $(GEN_HEADERS)
32         $(E) "  CC      " $@
33         $(Q) $(CC) -c $(CFLAGS) $< -o $@
34
35 $(PROG): %: $(HEADERS) %.o $(OBJS)
36         @echo $@ "is DEPRECATED and will be removed, don't use it"
37         $(E) "  LD      " $@
38         $(Q) $(LD) $(LDFLAGS) $@.o $(OBJS) -o $@ $(LIBUDEV) $(LIB_OBJS)
39
40 # man pages
41 %.8: %.xml
42         $(E) "  XMLTO   " $@
43         $(Q) xmlto man $?
44 .PRECIOUS: %.8
45
46 clean:
47         $(E) "  CLEAN   "
48         $(Q) rm -f $(PROG) $(OBJS) $(GEN_HEADERS)
49 .PHONY: clean
50
51 install-bin: all
52         @echo $@ "is DEPRECATED and will be removed, don't use it"
53         $(INSTALL_PROGRAM) -D udev_run_devd $(DESTDIR)$(libudevdir)/udev_run_devd
54         $(INSTALL_PROGRAM) -D udev_run_hotplugd $(DESTDIR)$(libudevdir)/udev_run_hotplugd
55 .PHONY: install-bin
56
57 uninstall-bin:
58         - rm $(DESTDIR)$(libudevdir)/udev_run_devd
59         - rm $(DESTDIR)$(libudevdir)/udev_run_hotplugd
60 .PHONY: uninstall-bin
61
62 install-man:
63         @echo "Please create a man page for this tool."
64 .PHONY: install-man
65
66 uninstall-man:
67         @echo "Please create a man page for this tool."
68 .PHONY: uninstall-man
69
70 install-config:
71         @echo "no config file to install"
72 .PHONY: install-config