]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
appdoc target for per-app documentation
authoridgay <idgay>
Mon, 4 Jun 2007 20:57:44 +0000 (20:57 +0000)
committeridgay <idgay>
Mon, 4 Jun 2007 20:57:44 +0000 (20:57 +0000)
support/make/appdoc.extra [new file with mode: 0644]

diff --git a/support/make/appdoc.extra b/support/make/appdoc.extra
new file mode 100644 (file)
index 0000000..7d29e81
--- /dev/null
@@ -0,0 +1,17 @@
+#-*-Makefile-*- vim:syntax=make
+#$Id$
+
+# 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
+
+BUILD_DEPS = appdoc_
+
+appdoc_: FORCE
+       @echo "    Making application documentation for $(COMPONENT) on $(PLATFORM)"
+        # first generate the xml files
+       nesdoc -o build $(NESDOC_FLAGS) $(PFLAGS) $(CFLAGS) $(COMPONENT).nc -app
+        # generate html from the xml files
+       nesdoc -o build -html -target=$(PLATFORM)