From: Greg KH Date: Sat, 10 May 2008 05:49:30 +0000 (-0700) Subject: patch for moreutils Makefile X-Git-Tag: 0.30~7 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6824744a68f35eb4615b877267922d50a40a1122;p=moreutils patch for moreutils Makefile Hi, I just packaged up moreutils for Gentoo and added it to their system, I'll go add it to the SuSE repo system next week as well, thanks a lot for the utils. Here's a small patch to the makefile to make it easier for distros to change the docbook2x-man binary as it is named other things (Gentoo for example has it as docbook2man.pl). This way it can be changed on the build line, and the Makefile doesn't have to be patched. Thanks for already fixing the DESTDIR thing, that also will make things easier. And also, you mention dropping you an email if you want to be notified when new versions come out, I'd appreciate it if you could add me to that list if you have one. thanks again, greg k-h -------------------- Subject: Make docbook2x-man able to be overridden in Makefile This makes it easier for distros that do not have the docbook2x-man binary with that name, override it on the command line instead of having to patch the Makefile. --- diff --git a/Makefile b/Makefile index 54f3759..b0595c4 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,8 @@ MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifdata.1 ifne.1 pee.1 zrun. CFLAGS=-O2 -g -Wall INSTALL_BIN?=install -s +DOCBOOK2XMAN="docbook2x-man" + all: $(BINS) $(MANS) clean: @@ -21,25 +23,25 @@ check: isutf8 ./check-isutf8 isutf8.1: isutf8.docbook - docbook2x-man $< + $(DOCBOOK2XMAN) $< ifdata.1: ifdata.docbook - docbook2x-man $< + $(DOCBOOK2XMAN) $< ifne.1: ifne.docbook - docbook2x-man $< + $(DOCBOOK2XMAN) $< pee.1: pee.docbook - docbook2x-man $< + $(DOCBOOK2XMAN) $< sponge.1: sponge.docbook - docbook2x-man $< + $(DOCBOOK2XMAN) $< mispipe.1: mispipe.docbook - docbook2x-man $< + $(DOCBOOK2XMAN) $< lckdo.1: lckdo.docbook - docbook2x-man $< + $(DOCBOOK2XMAN) $< %.1: % pod2man --center=" " --release="moreutils" $< > $@;