/usr/lib/grass64/include/Make/Html.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 | #NOTE: parts of the header are generated in ../../lib/gis/parser.c
HTMLDIR = $(ARCH_DISTDIR)/docs/html
# generic html rules for all commands
ifdef CROSS_COMPILING
htmlcmd:
htmlscript:
htmletc:
htmldir:
htmlmulti:
else
htmlgen = \
$(MODULE_TOPDIR)/tools/mkhtml.sh $(PGM) ; \
$(MKDIR) $(HTMLDIR) ; \
$(INSTALL_DATA) $(PGM).tmp.html $(HTMLDIR)/$(PGM).html ; \
for file in *.png *.jpg ; do \
head -n 1 $$file | grep '^\#!' > /dev/null ; \
if [ $$? -ne 0 ] ; then \
$(INSTALL_DATA) $$file $(HTMLDIR) ; \
fi \
done 2> /dev/null ; true
htmldesc = \
GISRC=$(RUN_GISRC) \
GISBASE=$(RUN_GISBASE) \
PATH="$(BIN):$$PATH" \
$(LD_LIBRARY_PATH_VAR)="$(BIN):$(ARCH_LIBDIR):$($(LD_LIBRARY_PATH_VAR))" \
LC_ALL=C fakeroot $(1) --html-description < /dev/null | grep -v '</body>\|</html>' > $(PGM).tmp.html ; true
$(HTMLDIR)/$(PGM).html: $(HTMLSRC)
if [ "$(HTMLSRC)" != "" ] ; then $(call htmldesc,$<) ; fi
$(call htmlgen)
# html rules for cmd commands
htmlcmd:
$(MAKE) $(HTMLDIR)/$(PGM).html HTMLSRC=$(BIN)/$(PGM)$(EXE)
# html rules for scripts
htmlscript:
$(MAKE) $(HTMLDIR)/$(PGM).html HTMLSRC=$(SCRIPTDIR)/$(PGM)
# html rules for ETC commands
htmletc:
$(MAKE) $(HTMLDIR)/$(PGM).html HTMLSRC=$(ETC)/$(PGM)$(EXE)
# html rules for intro pages in directories
htmldir:
$(MAKE) $(HTMLDIR)/$(PGM).html
# html rules for multiple commands
htmlmulti:
for prog in $(PROGRAMS) ; do $(MAKE) htmlcmd PGM=$$prog ; done
endif
.PHONY: htmlcmd htmletc htmlscript htmldir htmlmulti
|