pkgsrc/textproc/xml2doc/patches/patch-aa
2010-07-07 00:29:32 +00:00

34 lines
1.3 KiB
Text

$NetBSD: patch-aa,v 1.2 2010/07/07 00:29:32 joerg Exp $
--- doc/Makefile.in.orig 2003-05-10 14:44:26.000000000 +0000
+++ doc/Makefile.in
@@ -6,10 +6,8 @@ all:
build:
@printf "\e[32mBuilding documentation...\e[0m\n"
- export PATH=$(PATH):$(PWD)/src/ ;
- for A in *.xml; do xml2doc -oP $$A $$A.pdf ; done ;
- xml2doc -oM manpage.xml manpage.man ;
- gzip manpage.man ;
+ for A in *.xml; do ../src/xml2doc -oP $$A $$A.pdf ; done ;
+ ../src/xml2doc -oM manpage.xml manpage.man;
@printf "\e[32mDONE\e[0m\n"
mrproper: clean
@@ -20,11 +18,11 @@ clean:
install: build
@printf "\e[32mInstalling documentation...\e[0m\n"
- @mkdir -p $(PREFIX)/share/man/man1
- cp -f manpage.man.gz $(PREFIX)/share/man/man1/xml2doc.1.gz
- gzip -f $(PREFIX)/share/man/man1/xml2doc.1
- @mkdir -p $(PREFIX)/share/doc/xml2doc
- for A in $(DOCS); do cp -f $$A $(PREFIX)/share/doc/xml2doc/ ;done
+ @mkdir -p ${DESTDIR}$(PREFIX)/${PKGMANDIR}/man1
+ $(BSD_INSTALL_MAN) manpage.man ${DESTDIR}$(PREFIX)/${PKGMANDIR}/man1/xml2doc.1
+ @$(BSD_INSTALL_DATA_DIR) ${DESTDIR}$(PREFIX)/share/doc/xml2doc
+ for A in $(DOCS); do $(BSD_INSTALL_DATA) $$A \
+ ${DESTDIR}$(PREFIX)/share/doc/xml2doc/ ;done
remove:
@printf "\e[32mDeinstalling documentation...\e[0m\n"