From 56e67d38ff26548f1380f954334f601bfdf457f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 23 Feb 2010 18:37:46 +0100 Subject: [PATCH] Readded man/install to the Makefile --- tools/dmake.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/tools/dmake.cpp b/tools/dmake.cpp index 8aba1476e..abc2a1d4e 100644 --- a/tools/dmake.cpp +++ b/tools/dmake.cpp @@ -111,6 +111,11 @@ int main() // more warnings.. -Wfloat-equal -Wcast-qual -Wsign-conversion -Wlogical-op fout << "CXXFLAGS=-Wall -Wextra -pedantic -g\n"; fout << "CXX=g++\n"; + fout << "BIN=${DESTDIR}/usr/bin\n\n"; + fout << "# For 'make man': sudo apt-get install xsltproc docbook-xsl docbook-xml\n"; + fout << "DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl\n"; + fout << "XP=xsltproc -''-nonet -''-param man.charmap.use.subset \"0\"\n"; + fout << "MAN_SOURCE=man/cppcheck.1.xml\n\n"; fout << "\n###### Object Files\n\n"; fout << "LIBOBJ = " << objfile(libfiles[0]); @@ -137,12 +142,14 @@ int main() fout << "\t./testrunner\n\n"; fout << "clean:\n"; #ifdef _WIN32 - fout << "\tdel lib\*.o\n" - << "\tdel cli\*.o\n" - << "\tdel test\*.o\n" - << "\tdel *.exe\n"; + fout << "\tdel lib\*.o\n\tdel cli\*.o\n\tdel test\*.o\n\tdel *.exe\n"; #else fout << "\trm -f lib/*.o cli/*.o test/*.o testrunner cppcheck\n\n"; + fout << "man:\t$(MAN_SOURCE)\n"; + fout << "\t$(XP) $(DB2MAN) $(MAN_SOURCE)\n\n"; + fout << "install:\tcppcheck\n"; + fout << "\tinstall -d ${BIN}\n"; + fout << "\tinstall cppcheck ${BIN}\n\n"; #endif fout << "\n###### Build\n\n";