~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to include/Make/Man.make

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# some definitions
2
 
SECT = 1
3
 
MANDIR  = $(ARCH_DISTDIR)/man/man$(SECT)
4
 
HTMLDIR = $(ARCH_DISTDIR)/docs/html
5
 
HTML2MAN = GRASS_PERL=${PERL} VERSION_NUMBER=${GRASS_VERSION_NUMBER} sh $(MODULE_TOPDIR)/tools/g.html2man/g.html2man
6
 
 
7
 
# generic man rules for all commands
8
 
 
9
 
ifdef CROSS_COMPILING
10
 
 
11
 
mancmd:
12
 
 
13
 
manscript:
14
 
 
15
 
manetc:
16
 
 
17
 
mandir:
18
 
 
19
 
manmulti:
20
 
 
21
 
else
22
 
 
23
 
ifeq ($(PERL),no)
24
 
 
25
 
mancmd:
26
 
 
27
 
manscript:
28
 
 
29
 
manetc:
30
 
 
31
 
mandir:
32
 
 
33
 
manmulti:
34
 
 
35
 
else
36
 
 
37
 
$(MANDIR)/$(PGM).${SECT}: $(MANSRC)
38
 
        $(MKDIR) $(MANDIR)
39
 
        $(HTML2MAN) $< $@ $(SECT)
40
 
 
41
 
# man rules for cmd commands
42
 
mancmd:
43
 
        $(MAKE) $(MANDIR)/$(PGM).${SECT} MANSRC=$(HTMLDIR)/$(PGM).html
44
 
 
45
 
# man rules for scripts
46
 
manscript:
47
 
        $(MAKE) $(MANDIR)/$(PGM).${SECT} MANSRC=$(HTMLDIR)/$(PGM).html
48
 
 
49
 
# man rules for ETC commands
50
 
manetc:
51
 
        $(MAKE) $(MANDIR)/$(PGM).${SECT} MANSRC=$(HTMLDIR)/$(PGM).html
52
 
 
53
 
# man rules for intro pages in directories
54
 
mandir:
55
 
        $(MAKE) $(MANDIR)/$(PGM).${SECT} MANSRC=$(HTMLDIR)/$(PGM).html
56
 
 
57
 
# man rules for multiple commands
58
 
manmulti:
59
 
        for prog in $(PROGRAMS) ; do $(MAKE) mancmd PGM=$$prog ; done
60
 
 
61
 
endif
62
 
 
63
 
endif
64
 
 
65
 
.PHONY: mancmd manetc manscript mandir manmulti