Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

2008-10-19 Néstor Salceda <nestor.salceda@gmail.com>

	* common.make: Added the targets for generate the documentation from the
	XML code comments in the source code.  It also packages and make it
	installable in Monodoc.
	* Makefile.am: This target is not longer needed because the doc building
	is integrated in the build process.


svn path=/trunk/mono-tools/; revision=116473
  • Loading branch information...
commit 4f00e7aab41c0b0335ddf3eb3b2c081d65a79529 1 parent beac52b
Néstor Salceda authored
8 gendarme/rules/ChangeLog
View
@@ -1,3 +1,11 @@
+2008-10-19 Néstor Salceda <nestor.salceda@gmail.com>
+
+ * common.make: Added the targets for generate the documentation from the
+ XML code comments in the source code. It also packages and make it
+ installable in Monodoc.
+ * Makefile.am: This target is not longer needed because the doc building
+ is integrated in the build process.
+
2008-10-15 Néstor Salceda <nestor.salceda@gmail.com>
* Makefile.am: Added the doc target in order to update or generate the
9 gendarme/rules/Makefile.am
View
@@ -47,12 +47,3 @@ self-test: all
make self-test; \
cd ..; \
done;
-
-doc:
- for ASM in $(SUBDIRS); do \
- if [ "$$ASM" != "Test.Rules" ]; then \
- cd $$ASM; \
- make doc; \
- cd ..; \
- fi; \
- done;
20 gendarme/rules/common.make
View
@@ -8,6 +8,11 @@ rules_generated_sources = $(rules_sources_in:.in=)
rules_build_sources = $(addprefix $(srcdir)/, $(rules_sources))
rules_build_sources += $(rules_generated_sources)
+rules_doc = $(rules_doc_zip) $(rules_doc_source) $(rules_doc_tree)
+generated_doc = doc/generated/**/*.xml
+
+rules_category: $(rules_dll) $(rules_doc)
+
$(rules_dll): $(rules_build_sources) $(framework)
$(GMCS) -debug -target:library $(EXTRA_RULES_OPTIONS) -doc:$(rules_dll).doc -r:$(CECIL_ASM) -r:$(framework) -out:$@ $(rules_build_sources)
@@ -25,5 +30,16 @@ run-test: test
self-test: $(rules_dll)
mono --debug $(console_runner) $(rules_dll)
-doc: $(rules_dll)
- mdoc update -i $(rules_dll).doc -o doc $(rules_dll)
+$(generated_doc): $(rules_dll)
+ mdoc update -i $(rules_dll).doc -o doc/generated $(rules_dll)
+
+$(rules_doc_zip): $(generated_doc)
+ mdoc assemble -f ecma -o doc/`expr match "$(PWD)" '.*\(Gendarme.Rules.*\)'` doc/generated
+
+$(rules_doc_tree): $(generated_doc)
+
+$(rules_doc_source):
+ echo -e "<?xml version='1.0'?>\n<monodoc>\n\t<source provider='ecma' basefile='`expr match "$(PWD)" '.*\(Gendarme.Rules.*\)'`' path='ruleslib-`expr match "$(PWD)" '.*\(Gendarme.Rules.*\)'`'/>\n</monodoc>" > doc/`expr match "$(PWD)" '.*\(Gendarme.Rules.*\)'`.source
+
+clean-local:
+ rm -fr doc/generated
Please sign in to comment.
Something went wrong with that request. Please try again.