From 5dc55c3b2acbee5b6907132b457822d20995f561 Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Sat, 30 May 2015 19:05:44 -0700 Subject: [PATCH] Makefile: refine man page rules --- Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index d0cc328..8dd1b5a 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,7 @@ BINDIR ?= $(PREFIX)/bin MANDIR ?= $(PREFIX)/share/man HAS_DOCBOOK ?= no +DOCBOOK_XSL ?= http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl OBJFILES = \ git-crypt.o \ @@ -25,13 +26,12 @@ OBJFILES = \ OBJFILES += crypto-openssl.o LDFLAGS += -lcrypto -DOCBOOK = xsltproc \ - --param man.output.in.separate.dir 1 \ - --stringparam man.output.base.dir man/ \ - --param man.output.subdirs.enabled 1 \ - --param man.authors.section.enabled 1 \ - --nonet \ - http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl +XSLTPROC ?= xsltproc +DOCBOOK_FLAGS += --param man.output.in.separate.dir 1 \ + --stringparam man.output.base.dir man/ \ + --param man.output.subdirs.enabled 1 \ + --param man.authors.section.enabled 1 \ + --nonet all: build @@ -55,7 +55,7 @@ coprocess.o: coprocess.cpp coprocess-unix.cpp coprocess-win32.cpp build-man: man/man1/git-crypt.1 man/man1/git-crypt.1: man/git-crypt.xml - $(DOCBOOK) $< + $(XSLTPROC) $(DOCBOOK_FLAGS) $(DOCBOOK_XSL) $< # # Clean