Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
... ... @@ -1,3 +1,11 @@
  1 +2008-10-19 Néstor Salceda <nestor.salceda@gmail.com>
  2 +
  3 + * common.make: Added the targets for generate the documentation from the
  4 + XML code comments in the source code. It also packages and make it
  5 + installable in Monodoc.
  6 + * Makefile.am: This target is not longer needed because the doc building
  7 + is integrated in the build process.
  8 +
1 9 2008-10-15 Néstor Salceda <nestor.salceda@gmail.com>
2 10
3 11 * Makefile.am: Added the doc target in order to update or generate the
9 gendarme/rules/Makefile.am
@@ -47,12 +47,3 @@ self-test: all
47 47 make self-test; \
48 48 cd ..; \
49 49 done;
50   -
51   -doc:
52   - for ASM in $(SUBDIRS); do \
53   - if [ "$$ASM" != "Test.Rules" ]; then \
54   - cd $$ASM; \
55   - make doc; \
56   - cd ..; \
57   - fi; \
58   - done;
20 gendarme/rules/common.make
@@ -8,6 +8,11 @@ rules_generated_sources = $(rules_sources_in:.in=)
8 8 rules_build_sources = $(addprefix $(srcdir)/, $(rules_sources))
9 9 rules_build_sources += $(rules_generated_sources)
10 10
  11 +rules_doc = $(rules_doc_zip) $(rules_doc_source) $(rules_doc_tree)
  12 +generated_doc = doc/generated/**/*.xml
  13 +
  14 +rules_category: $(rules_dll) $(rules_doc)
  15 +
11 16 $(rules_dll): $(rules_build_sources) $(framework)
12 17 $(GMCS) -debug -target:library $(EXTRA_RULES_OPTIONS) -doc:$(rules_dll).doc -r:$(CECIL_ASM) -r:$(framework) -out:$@ $(rules_build_sources)
13 18
@@ -25,5 +30,16 @@ run-test: test
25 30 self-test: $(rules_dll)
26 31 mono --debug $(console_runner) $(rules_dll)
27 32
28   -doc: $(rules_dll)
29   - mdoc update -i $(rules_dll).doc -o doc $(rules_dll)
  33 +$(generated_doc): $(rules_dll)
  34 + mdoc update -i $(rules_dll).doc -o doc/generated $(rules_dll)
  35 +
  36 +$(rules_doc_zip): $(generated_doc)
  37 + mdoc assemble -f ecma -o doc/`expr match "$(PWD)" '.*\(Gendarme.Rules.*\)'` doc/generated
  38 +
  39 +$(rules_doc_tree): $(generated_doc)
  40 +
  41 +$(rules_doc_source):
  42 + 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
  43 +
  44 +clean-local:
  45 + rm -fr doc/generated

0 comments on commit 4f00e7a

Please sign in to comment.
Something went wrong with that request. Please try again.