void-packages/srcpkgs/cppcheck/patches/Makefile_fix.diff

35 lines
888 B
Diff
Raw Normal View History

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++
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
clean:
2010-05-02 12:33:42 +00:00
rm -f lib/*.o cli/*.o test/*.o testrunner cppcheck
-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
-
+ install -m755 cppcheck ${BIN}
+ install -d $(MANDIR)/man1
+ install -m644 cppcheck.1 $(MANDIR)/man1
###### Build
2010-05-02 12:33:42 +00:00