source: trunk/doc/Makefile @ 191

Last change on this file since 191 was 155, checked in by tim, 16 years ago

work around for man page formatting problem

minor comment

  • Property svn:keywords set to Id
File size: 1.4 KB
RevLine 
[17]1# $Id: Makefile 155 2009-06-03 23:45:58Z tim $
[9]2
[119]3BUILD_FILES=$(BUILD_DOC)/man/man1/reglookup.1.gz\
4        $(BUILD_DOC)/man/man1/reglookup-timeline.1.gz\
5        $(BUILD_DOC)/man/man1/reglookup-recover.1.gz
[38]6
7default: $(BUILD_FILES)
8
[119]9$(BUILD_DOC)/man/man1:
[23]10        mkdir -p $(BUILD_DOC)/man/man1
[119]11
12$(BUILD_DOC)/man/man1/reglookup.1.gz: man/man1/reglookup.1.gz $(BUILD_DOC)/man/man1
[38]13        cp man/man1/reglookup.1.gz $@
[9]14
[119]15$(BUILD_DOC)/man/man1/reglookup-timeline.1.gz: man/man1/reglookup-timeline.1.gz $(BUILD_DOC)/man/man1
[64]16        cp man/man1/reglookup-timeline.1.gz $@
17
[119]18$(BUILD_DOC)/man/man1/reglookup-recover.1.gz: man/man1/reglookup-recover.1.gz $(BUILD_DOC)/man/man1
19        cp man/man1/reglookup-recover.1.gz $@
20
[26]21install:
22        cp -r $(BUILD_DOC)/* $(DOC_PREFIX)
23        ln -sf $(DOC_PREFIX)/man/man1/*  $(MAN_PREFIX)/man1
24
25
[23]26#XXX: Used during release only
[34]27release:
[155]28        #XXX: The sed filter is a temporary hack to work around a bug in docbook2x-man
29        #     See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=516165
30        docbook2x-man --to-stdout reglookup.1.docbook | sed 's/.SH DESCRIPTION/\n.SH DESCRIPTION/' > man/man1/reglookup.1
31        docbook2x-man --to-stdout reglookup-timeline.1.docbook | sed 's/.SH DESCRIPTION/\n.SH DESCRIPTION/' > man/man1/reglookup-timeline.1
32        docbook2x-man --to-stdout reglookup-recover.1.docbook | sed 's/.SH DESCRIPTION/\n.SH DESCRIPTION/' > man/man1/reglookup-recover.1
[63]33        cd man/man1 && gzip -9 -f reglookup.1
[64]34        cd man/man1 && gzip -9 -f reglookup-timeline.1
[119]35        cd man/man1 && gzip -9 -f reglookup-recover.1
Note: See TracBrowser for help on using the repository browser.