On 2 February 2012 14:16, Michael Tokarev <m...@tls.msk.ru> wrote: > +POD2MAN = pod2man --utf8 > qemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi > $(call quiet-command, \ > perl -Ww -- $(SRC_PATH)/scripts/texi2pod.pl $< qemu.pod && \ > - pod2man --section=1 --center=" " --release=" " qemu.pod > $@, \ > + $(POD2MAN) --section=1 --center=" " --release=" " qemu.pod > $@, \ > " GEN $@") > > qemu-img.1: qemu-img.texi qemu-img-cmds.texi > $(call quiet-command, \ > perl -Ww -- $(SRC_PATH)/scripts/texi2pod.pl $< qemu-img.pod && \ > - pod2man --section=1 --center=" " --release=" " qemu-img.pod > $@, \ > + $(POD2MAN) --section=1 --center=" " --release=" " qemu-img.pod > > $@, \ > " GEN $@") > > fsdev/virtfs-proxy-helper.1: fsdev/virtfs-proxy-helper.texi > $(call quiet-command, \ > perl -Ww -- $(SRC_PATH)/scripts/texi2pod.pl $< > fsdev/virtfs-proxy-helper.pod && \ > - pod2man --section=1 --center=" " --release=" " > fsdev/virtfs-proxy-helper.pod > $@, \ > + $(POD2MAN) --section=1 --center=" " --release=" " > fsdev/virtfs-proxy-helper.pod > $@, \ > " GEN $@") > > qemu-nbd.8: qemu-nbd.texi > $(call quiet-command, \ > perl -Ww -- $(SRC_PATH)/scripts/texi2pod.pl $< qemu-nbd.pod && \ > - pod2man --section=8 --center=" " --release=" " qemu-nbd.pod > $@, \ > + $(POD2MAN) --section=8 --center=" " --release=" " qemu-nbd.pod > > $@, \ > " GEN $@")
So why does '--utf8' qualify as a common option that we specify just once in the POD2MAN variable, but --center=" " and --release=" " don't? Maybe we could reduce the duplication here with a makefile function? -- PMM