Skip to contentSkip to conversation

LVM2/man Makefile.in

PATCH [email protected] 1 participant 1 message Mar 29, 2010

lore
Share & tools
lore
#0 lore raw

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

man/Makefile.in +4 -1
@@ -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)"