File: docs.extra

package info (click to toggle)
tinyos 2.1.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 47,476 kB
  • ctags: 36,607
  • sloc: ansic: 63,646; cpp: 14,974; java: 10,358; python: 5,215; makefile: 1,724; sh: 902; asm: 597; xml: 392; perl: 74; awk: 46
file content (39 lines) | stat: -rw-r--r-- 1,009 bytes parent folder | download
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
#-*-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