chiark / gitweb /
[PATCH] rename namedev.permissions and namedev.config to udev.permissions and udev...
[elogind.git] / Makefile
index fabb81b2c37408e1ba010abe9e4598ffff4621fe..a5c00b7191dd93a0063d3a12af93524fe5d8cc3c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
-# Makefile for diethotplug
+# Makefile for udev
 #
-# Copyright (C) 2000,2001 Greg Kroah-Hartman <greg@kroah.com>
+# Copyright (C) 200 Greg Kroah-Hartman <greg@kroah.com>
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ DEBUG = true
 
 
 ROOT =         udev
-VERSION =      003
+VERSION =      004_bk
 INSTALL_DIR =  /usr/local/bin
 RELEASE_NAME = $(ROOT)-$(VERSION)
 
@@ -74,7 +74,8 @@ GCC_LIB := $(shell $(CC) -print-libgcc-file-name )
 OPTIMIZATION := ${shell if $(CC) -Os -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \
                then echo "-Os"; else echo "-O2" ; fi}
 
-WARNINGS := -Wall -Wshadow -Wstrict-prototypes 
+# add -Wredundant-decls when libsysfs gets cleaned up
+WARNINGS := -Wall -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
 
 # Some nice architecture specific optimizations
 ifeq ($(strip $(TARGET_ARCH)),arm)
@@ -171,7 +172,7 @@ clean:
        $(MAKE) -C libsysfs clean
        $(MAKE) -C tdb clean
 
-DISTFILES = $(shell find . \( -not -name '.' \) -print | grep -v CVS | grep -v "\.tar\.gz" | grep -v "\/\." | grep -v releases | grep -v BitKeeper | grep -v SCCS | grep -v ".tdb" | sort )
+DISTFILES = $(shell find . \( -not -name '.' \) -print | grep -v CVS | grep -v "\.tar\.gz" | grep -v "\/\." | grep -v releases | grep -v BitKeeper | grep -v SCCS | grep -v "\.tdb" | sort )
 DISTDIR := $(RELEASE_NAME)
 srcdir = .
 release: $(DISTFILES) clean
@@ -197,6 +198,18 @@ install: all
        $(INSTALL) -d $(hotplugdir)
        $(INSTALL_PROGRAM) -D $(ROOT) $(sbindir)/$(ROOT)
        $(INSTALL_DATA) -D udev.8 $(mandir)/man8/udev.8
-       $(INSTALL_DATA) namedev.config $(configdir)
-       $(INSTALL_DATA) namedev.permissions $(configdir)
+       $(INSTALL_DATA) udev.config $(configdir)
+       $(INSTALL_DATA) udev.permissions $(configdir)
        - ln -s $(sbindir)/$(ROOT) $(hotplugdir)/udev.hotplug
+
+uninstall:
+       - rm $(hotplugdir)/udev.hotplug
+       - rm $(configdir)/udev.permissions
+       - rm $(configdir)/udev.config
+       - rm $(mandir)/man8/udev.8
+       - rm $(sbindir)/$(ROOT)
+       - rmdir $(hotplugdir)
+       - rmdir $(configdir)
+       - rmdir $(udevdir)
+
+