Skip to content

Commit 3bf737a

Browse files
committed
Make DB2MAN overridable
On different systems it may point to different locations, e.g. FreeBSD uses ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl
1 parent 93f2a56 commit 3bf737a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ endif
108108
BIN=$(DESTDIR)$(PREFIX)/bin
109109

110110
# For 'make man': sudo apt-get install xsltproc docbook-xsl docbook-xml on Linux
111-
DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
111+
DB2MAN?=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
112112
XP=xsltproc -''-nonet -''-param man.charmap.use.subset "0"
113113
MAN_SOURCE=man/cppcheck.1.xml
114114

tools/dmake.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ int main(int argc, char **argv)
366366

367367
fout << "BIN=$(DESTDIR)$(PREFIX)/bin\n\n";
368368
fout << "# For 'make man': sudo apt-get install xsltproc docbook-xsl docbook-xml on Linux\n";
369-
fout << "DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl\n";
369+
fout << "DB2MAN?=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl\n";
370370
fout << "XP=xsltproc -''-nonet -''-param man.charmap.use.subset \"0\"\n";
371371
fout << "MAN_SOURCE=man/cppcheck.1.xml\n\n";
372372

0 commit comments

Comments
 (0)