From f829547a1300f5e345018cd4504e7a24e86fd0dc Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 29 Mar 2010 14:22:00 +0000 Subject: [PATCH] Avoid modification of .in files outside man directory. (i.e. this rule actually tried to change ../make.tmpl in some cases and left this file completely broken) --- man/Makefile.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/man/Makefile.in b/man/Makefile.in index 06846ea8e..446bbe6c6 100644 --- a/man/Makefile.in +++ b/man/Makefile.in @@ -66,7 +66,10 @@ man: $(MAN5) $(MAN8) $(MAN8CLUSTER) $(MAN5) $(MAN8) $(MAN8CLUSTER): Makefile %: %.in - $(SED) -e "s/#VERSION#/$(LVM_VERSION)/" $< > $@ + @case "$@" in \ + */*) ;; \ + *) echo "Creating $@" ; $(SED) -e "s/#VERSION#/$(LVM_VERSION)/" $< > $@ ;; \ + esac install_lvm2: @echo "Installing $(MAN8) in $(MAN8DIR)"