[lvm-devel] LVM2/man Makefile.in

zkabelac at sourceware.org zkabelac at sourceware.org
Mon Mar 29 14:22:04 UTC 2010


CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac at sourceware.org	2010-03-29 14:22:00

Modified files:
	man            : Makefile.in 

Log message:
	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)

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/man/Makefile.in.diff?cvsroot=lvm2&r1=1.33&r2=1.34

--- LVM2/man/Makefile.in	2010/03/29 14:18:01	1.33
+++ LVM2/man/Makefile.in	2010/03/29 14:22:00	1.34
@@ -66,7 +66,10 @@
 $(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)"




More information about the lvm-devel mailing list