chiark / gitweb /
Makefiles: fix .PHONY for man page target
[elogind.git] / extras / firmware / Makefile
index da7fe9d1a803f20b69dc0d1f92c12bf720b6324e..cfc7cd51537feecae212016cbfe2f694ae8cc3f4 100644 (file)
@@ -1,14 +1,11 @@
 # Makefile for udev extra invoked from the udev main Makefile
 #
-# Copyright (C) 2004-2005 Kay Sievers <kay.sievers@vrfy.org>
+# Copyright (C) 2004-2006 Kay Sievers <kay.sievers@vrfy.org>
 #
 # Released under the GNU General Public License, version 2.
 #
 
-PROG = firmware_helper
-OBJ =
-HEADERS =
-GEN_HEADERS =
+PROG = firmware.sh
 MAN_PAGES =
 
 prefix =
@@ -29,22 +26,14 @@ all: $(PROG) $(MAN_PAGES)
 .PHONY: all
 .DEFAULT: all
 
-%.o: %.c $(GEN_HEADERS)
-       $(QUIET) $(CC) -c $(CFLAGS) $< -o $@
-
-$(PROG): %: $(HEADERS) %.o $(OBJS)
-       $(QUIET) $(LD) $(LDFLAGS) $@.o $(OBJS) -o $@ $(LIBUDEV) $(LIB_OBJS)
-ifneq ($(strip $(STRIPCMD)),)
-       $(QUIET) $(STRIPCMD) $@
-endif
-
 # man pages
 %.8: %.xml
-       xmlto man $?
+       $(E) "  XMLTO   " $@
+       $(Q) xmlto man $?
 .PRECIOUS: %.8
 
 clean:
-       rm -f $(PROG) $(OBJS) $(GEN_HEADERS)
+       $(E) "  CLEAN   "
 .PHONY: clean
 
 install-bin: all
@@ -57,7 +46,7 @@ uninstall-bin:
 
 install-man:
        @echo "Please create a man page for this tool."
-.PHONY: uninstall-man
+.PHONY: install-man
 
 uninstall-man:
        @echo "Please create a man page for this tool."
@@ -66,3 +55,4 @@ uninstall-man:
 install-config:
        @echo "no config file to install"
 .PHONY: install-config
+