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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2014-04-16 20:08:57 +0400
committerMiguel de Icaza <miguel@gnome.org>2014-04-16 20:09:20 +0400
commite3150746f39a5e4b558850e93518a9fb77f33f73 (patch)
treeb8990aeefcd9c345f8d4b1914bf0b38177fc1ec5 /docs/Makefile.am
parent8f790e107ffc6801e097c7c07e15b1471d81521b (diff)
Runtime documentation will now build with srcdir != builddir
This removes an old and broken patch that did not allow for clean builds of Mono. The old patch was so bad, that instead of fixing the actual source of the problem (the ability to build the runtime documentation when the source directory was not the same as the build directory), a hack was added to circumvent `make distcheck''s security system and changed the permissions at build time for the source directory to become read/write. This fixes the problem
Diffstat (limited to 'docs/Makefile.am')
-rw-r--r--docs/Makefile.am51
1 files changed, 25 insertions, 26 deletions
diff --git a/docs/Makefile.am b/docs/Makefile.am
index c0450027cfd..abb659f778d 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -73,41 +73,40 @@ dist-hook:
cp HtmlAgilityPack/* $(distdir)/HtmlAgilityPack
clean-local:
- -rm -Rf $(srcdir)/html
- -rm -f $(srcdir)/deploy/* $(srcdir)/convert.exe* $(srcdir)/AgilityPack.dll*
- -cd $(srcdir) && rm -f $(ASSEMBLED_DOCS)
+ -rm -Rf html
+ -rm -f deploy/* convert.exe* AgilityPack.dll*
+ -rm -f $(ASSEMBLED_DOCS)
+
+TOOL_MAKE=$(MAKE) -f $(srcdir)/docs.make topdir=$(srcdir)/../mcs srcdir=$(srcdir)
monoapi.zip: monoapi.tree
- @test -f $@ || { rm -f $(srcdir)/monoapi.tree && $(MAKE) monoapi.tree; }
-monoapi.tree: docs.make Makefile.am toc.xml $(srcdir)/deploy/.stamp perms
- cd $(srcdir) && cp -f api-style.css deploy
- cd $(srcdir) && $(MAKE) -f docs.make topdir=$(mcs_topdir_from_srcdir) $@
+
+monoapi.tree: $(srcdir)/docs.make $(srcdir)/Makefile.am $(srcdir)/toc.xml $(srcdir)/deploy/.stamp
+ -mkdir deploy
+ cp -f $(srcdir)/api-style.css deploy
+ $(TOOL_MAKE) $@
mono-tools.zip: mono-tools.tree
- @test -f $@ || { rm -f $(srcdir)/mono-tools.tree && $(MAKE) mono-tools.tree; }
-mono-tools.tree: docs.make Makefile.am $(srcdir)/deploy/.stamp perms
- cd $(srcdir) && $(MAKE) -f docs.make topdir=$(mcs_topdir_from_srcdir) $@
-mono-file-formats.zip: mono-file-formats.tree perms
- @test -f $@ || { rm -f $(srcdir)/mono-file-formats.tree && $(MAKE) mono-file-formats.tree; }
-mono-file-formats.tree: docs.make Makefile.am $(srcdir)/deploy/.stamp
- cd $(srcdir) && $(MAKE) -f docs.make topdir=$(mcs_topdir_from_srcdir) $@
+mono-tools.tree: $(srcdir)/docs.make Makefile.am deploy/.stamp
+ $(TOOL_MAKE) $@
+
+mono-file-formats.zip: mono-file-formats.tree
-$(srcdir)/deploy/.stamp: convert.exe Makefile.am perms
- $(mkdir_p) $(srcdir)/html
+mono-file-formats.tree: $(srcdir)/docs.make $(srcdir)/Makefile.am $(srcdir)/deploy/.stamp
+ $(TOOL_MAKE) $@
+
+deploy/.stamp: convert.exe Makefile.am
+ $(mkdir_p) html
runtimedir=`cd ../runtime && pwd`; export runtimedir; \
- cd $(srcdir) && MONO_PATH=$(mcs_topdir_from_srcdir)/class/lib/net_2_0 perl ./exdoc -h . ../mono/*/*.c
+ MONO_PATH=../mcs/class/lib/net_2_0 perl $(srcdir)/exdoc -h $(srcdir) -t . $(srcdir)/../mono/*/*.c
touch $@
-extract: $(srcdir)/deploy/.stamp
-
-convert.exe: convert.cs AgilityPack.dll perms
- cd $(srcdir) && $(MAKE) PROFILE=net_2_0 -f docs.make topdir=$(mcs_topdir_from_srcdir) convert.exe
+extract: deploy/.stamp
-AgilityPack.dll: perms
- cd $(srcdir) && $(MAKE) PROFILE=net_2_0 -f docs.make topdir=$(mcs_topdir_from_srcdir) AgilityPack.dll
+convert.exe: convert.cs AgilityPack.dll
+ $(TOOL_MAKE) PROFILE=net_2_0 convert.exe
-.PHONY: perms
-perms:
- -@test -w $(srcdir) || chmod a+w $(srcdir)
+AgilityPack.dll:
+ $(TOOL_MAKE) PROFILE=net_2_0 AgilityPack.dll