docs.extra
来自「tinyos-2.x.rar」· EXTRA 代码 · 共 40 行
EXTRA
40 行
#-*-Makefile-*- vim:syntax=make
#$Id: docs.extra,v 1.5 2008/05/02 20:49:44 idgay Exp $
# configure the base for the app dirs. This is used to generate more
# useful package names in the documentation.
ifeq ($(BASEDIR)_x, _x)
BASEDIR := $(shell pwd | sed 's@\(.*\)/apps.*$$@\1@' )
endif
# The output directory for generated documentation
ifeq ($(DOCDIR)_x, _x)
DOCDIR := $(BASEDIR)/doc/nesdoc
endif
COMMA=,
DOCS := $(subst $(COMMA), ,$(subst ., ,$(DOCS)))
ifeq ($(filter here,$(DOCS)),here)
DOCDIR = doc
endif
ifeq ($(filter preserve,$(DOCS)),preserve)
PFLAGS += -preserve
endif
ifeq ($(filter quiet,$(DOCS)),quiet)
QUIET = -quiet
endif
BUILD_DEPS = docs_
docs_: FORCE
@echo " Making documentation for $(COMPONENT) on $(PLATFORM)"
# first generate the xml files
nesdoc -o $(DOCDIR) $(NESDOC_FLAGS) $(PFLAGS) $(CFLAGS) $(QUIET) $(COMPONENT).nc
ifneq ($(filter nohtml,$(DOCS)),nohtml)
# generate html from the xml files
nesdoc -o $(DOCDIR) -html $(QUIET) -target=$(PLATFORM)
endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?