2010-05-02 12:33:42 +00:00
|
|
|
--- Makefile.orig 2010-05-02 14:30:00.962750572 +0200
|
|
|
|
+++ Makefile 2010-05-02 14:31:50.935750160 +0200
|
|
|
|
@@ -3,10 +3,10 @@ CXX=g++
|
2010-01-18 15:17:43 +00:00
|
|
|
BIN=${DESTDIR}/usr/bin
|
|
|
|
|
|
|
|
# For 'make man': sudo apt-get install xsltproc docbook-xsl docbook-xml
|
|
|
|
-DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
|
|
|
|
+DB2MAN=/usr/share/xsl/docbook/manpages/docbook.xsl
|
|
|
|
XP=xsltproc -''-nonet -''-param man.charmap.use.subset "0"
|
|
|
|
MAN_SOURCE=man/cppcheck.1.xml
|
|
|
|
-
|
|
|
|
+MANDIR=$(DESTDIR)/usr/share/man
|
|
|
|
|
|
|
|
###### Object Files
|
|
|
|
|
2010-05-02 12:33:42 +00:00
|
|
|
@@ -77,13 +77,14 @@ test: all
|
2010-01-18 15:17:43 +00:00
|
|
|
clean:
|
2010-05-02 12:33:42 +00:00
|
|
|
rm -f lib/*.o cli/*.o test/*.o testrunner cppcheck
|
2010-01-18 15:17:43 +00:00
|
|
|
|
|
|
|
-man: $(MAN_SOURCE)
|
|
|
|
- $(XP) $(DB2MAN) $(MAN_SOURCE)
|
|
|
|
+cppcheck.1: $(MAN_SOURCE)
|
|
|
|
+ $(XP) $(DB2MAN) $<
|
|
|
|
|
|
|
|
install: cppcheck
|
|
|
|
install -d ${BIN}
|
|
|
|
- install cppcheck ${BIN}
|
2010-05-02 12:33:42 +00:00
|
|
|
-
|
2010-01-18 15:17:43 +00:00
|
|
|
+ install -m755 cppcheck ${BIN}
|
|
|
|
+ install -d $(MANDIR)/man1
|
|
|
|
+ install -m644 cppcheck.1 $(MANDIR)/man1
|
|
|
|
|
|
|
|
###### Build
|
2010-05-02 12:33:42 +00:00
|
|
|
|