Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNéstor Salceda <nestor@mono-cvs.ximian.com>2008-10-19 23:45:39 +0400
committerNéstor Salceda <nestor@mono-cvs.ximian.com>2008-10-19 23:45:39 +0400
commit4f00e7aab41c0b0335ddf3eb3b2c081d65a79529 (patch)
treea4fae9796579de3923657e21488e0eedd9eb728c
parentbeac52bac7e7966e954f7a9e395a5bc98fb311eb (diff)
2008-10-19 Néstor Salceda <nestor.salceda@gmail.com>messaging-2008
* 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
-rw-r--r--gendarme/rules/ChangeLog8
-rw-r--r--gendarme/rules/Makefile.am9
-rw-r--r--gendarme/rules/common.make20
3 files changed, 26 insertions, 11 deletions
diff --git a/gendarme/rules/ChangeLog b/gendarme/rules/ChangeLog
index ee90f85b..f84de813 100644
--- a/gendarme/rules/ChangeLog
+++ b/gendarme/rules/ChangeLog
@@ -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
diff --git a/gendarme/rules/Makefile.am b/gendarme/rules/Makefile.am
index e18e173e..64c45e6c 100644
--- a/gendarme/rules/Makefile.am
+++ b/gendarme/rules/Makefile.am
@@ -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;
diff --git a/gendarme/rules/common.make b/gendarme/rules/common.make
index 6f6679fb..482498a3 100644
--- a/gendarme/rules/common.make
+++ b/gendarme/rules/common.make
@@ -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