summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGreg KH <greg@kroah.com>2008-05-09 22:49:30 -0700
committerJoey Hess <joey@kodama.kitenet.net>2008-05-10 12:37:28 -0400
commit6824744a68f35eb4615b877267922d50a40a1122 (patch)
treec179b2c5db3ccd4571cb08d0814984b215c7e151 /Makefile
parent83e8da32e5d3154f1c97e6eb62c30450ff95b5af (diff)
downloadmoreutils-6824744a68f35eb4615b877267922d50a40a1122.tar.gz
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 9 insertions, 7 deletions
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" $< > $@;