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