diff --git a/udev/Makefile.in b/udev/Makefile.in index 2511cf8a8..11635bbc2 100644 --- a/udev/Makefile.in +++ b/udev/Makefile.in @@ -1,5 +1,5 @@ # -# Copyright (C) 2009 Red Hat, Inc. All rights reserved. +# Copyright (C) 2009-2010 Red Hat, Inc. All rights reserved. # # This file is part of LVM2. # @@ -25,24 +25,13 @@ include $(top_builddir)/make.tmpl vpath %.rules $(srcdir) -%: %.in +%.rules: %.rules.in $(SED) -e "s/(DM_DIR)/$(DM_DIR)/" $< >$@ -install_lvm2: $(LVM_RULES) - @echo "Installing $(LVM_RULES) in $(udevdir)" - @for f in $(LVM_RULES); \ - do \ - $(RM) $(udevdir)/$$f; \ - $(INSTALL) -c -D $(OWNER) $(GROUP) -m 644 $(srcdir)/$$f $(udevdir)/$$f; \ - done +%_install: %.rules + $(INSTALL_DATA) -D $< $(udevdir)/$(