~ubuntu-branches/ubuntu/trusty/bmake/trusty-proposed

« back to all changes in this revision

Viewing changes to mk/doc.mk

  • Committer: Package Import Robot
  • Author(s): Andrew Shadura
  • Date: 2013-09-22 16:07:33 UTC
  • Revision ID: package-import@ubuntu.com-20130922160733-9cvmsi7z0jswtrbi
Tags: upstream-20130904
ImportĀ upstreamĀ versionĀ 20130904

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $Id: doc.mk,v 1.4 2012/11/11 22:37:02 sjg Exp $
 
2
 
 
3
.if !target(__${.PARSEFILE}__)
 
4
__${.PARSEFILE}__:
 
5
 
 
6
BIB?=           bib
 
7
EQN?=           eqn
 
8
GREMLIN?=       grn
 
9
GRIND?=         vgrind -f
 
10
INDXBIB?=       indxbib
 
11
PIC?=           pic
 
12
REFER?=         refer
 
13
ROFF?=          groff -M/usr/share/tmac ${MACROS} ${PAGES}
 
14
SOELIM?=        soelim
 
15
TBL?=           tbl
 
16
 
 
17
.PATH: ${.CURDIR}
 
18
 
 
19
.if !target(all)
 
20
.MAIN: all
 
21
all: paper.ps
 
22
.endif
 
23
 
 
24
.if !target(paper.ps)
 
25
paper.ps: ${SRCS}
 
26
        ${ROFF} ${SRCS} > ${.TARGET}
 
27
.endif
 
28
 
 
29
.if !target(print)
 
30
print: paper.ps
 
31
        lpr -P${PRINTER} paper.ps
 
32
.endif
 
33
 
 
34
.if !target(manpages)
 
35
manpages:
 
36
.endif
 
37
 
 
38
.if !target(obj)
 
39
obj:
 
40
.endif
 
41
 
 
42
clean cleandir:
 
43
        rm -f paper.* [eE]rrs mklog ${CLEANFILES}
 
44
 
 
45
.if ${MK_DOC} == "no"
 
46
install:
 
47
.else
 
48
FILES?= ${SRCS}
 
49
install:
 
50
        ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
 
51
            Makefile ${FILES} ${EXTRA} ${DESTDIR}${BINDIR}/${DIR}
 
52
.endif
 
53
 
 
54
spell: ${SRCS}
 
55
        spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell
 
56
 
 
57
BINDIR?=        /usr/share/doc
 
58
BINGRP?=        bin
 
59
BINOWN?=        bin
 
60
BINMODE?=       444
 
61
 
 
62
.include <own.mk>
 
63
.endif