[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 2/7] docs/build: Do not open-code $*



Sometimes there is already a round enough wheel to hand.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CC: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
CC: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
CC: Wei Liu <wei.liu2@xxxxxxxxxx>
---
 docs/Makefile |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/docs/Makefile b/docs/Makefile
index f4c8412..6f79584 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -73,13 +73,11 @@ endif
 
 man1/%.1: man/%.pod.1 Makefile
        $(INSTALL_DIR) $(@D)
-       $(POD2MAN) --release=$(VERSION) --name=`echo $@ | sed 's/^man1.//'| \
-               sed 's/.1//'` -s 1 -c "Xen" $< $@
+       $(POD2MAN) --release=$(VERSION) --name=$* -s 1 -c "Xen" $< $@
 
 man5/%.5: man/%.pod.5 Makefile
        $(INSTALL_DIR) $(@D)
-       $(POD2MAN) --release=$(VERSION) --name=`echo $@ | sed 's/^man5.//'| \
-               sed 's/.5//'` -s 5 -c "Xen" $< $@
+       $(POD2MAN) --release=$(VERSION) --name=$* -s 5 -c "Xen" $< $@
 
 .PHONY: clean
 clean:
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.