Readded man/install to the Makefile
This commit is contained in:
parent
d493592ae4
commit
56e67d38ff
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue