mirror of
https://github.com/AGWA/git-crypt.git
synced 2026-02-05 03:17:01 -08:00
Makefile: refine man page rules
This commit is contained in:
16
Makefile
16
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
|
||||
|
||||
Reference in New Issue
Block a user