diff options
author | Raja R Harinath <harinath@hurrynot.org> | 2004-11-25 15:27:59 +0300 |
---|---|---|
committer | Raja R Harinath <harinath@hurrynot.org> | 2004-11-25 15:27:59 +0300 |
commit | 4401b4571954870ac75cc7bb9949aeb2d1c17de5 (patch) | |
tree | 625981eecf2a7e710b34f9eb4bd73003db157ba2 /runtime | |
parent | 34e3d2fea3bba97cebbd4fe553a21d3cfa541fb3 (diff) |
* runtime/Makefile.am (all-local): Make mcs/ tree writeable if necessary.
(distdir): New. Using 'cygnus' option disables the automake rule.
svn path=/trunk/mono/; revision=36542
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/Makefile.am | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/runtime/Makefile.am b/runtime/Makefile.am index a8b33f7937f..a11eb6f3692 100644 --- a/runtime/Makefile.am +++ b/runtime/Makefile.am @@ -17,7 +17,9 @@ etc/mono/2.0/machine.config: $(top_srcdir)/data/net_2_0/machine.config $(symlinks): cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ +# The write check is to foil 'make distcheck' all-local: $(symlinks) mono-wrapper + if test -w $(mcs_topdir); then :; else chmod -R +w $(mcs_topdir); fi d=`pwd`; cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/mono-wrapper PROFILES='$(build_profiles)' all-profiles if INSTALL_2_0 @@ -78,3 +80,13 @@ $(tmpinst)/bin/pedump: $(srcdir)/Makefile.am $(mkdir_p) $(@D) (b=`pwd`; echo '#! /bin/sh'; echo 'exec "'"$$b/libtool"'" --mode=execute "'"$$b/mono/metadata/pedump"'" "$$@"') > $@ chmod +x $@ + +# the 'cygnus' option also disables the default 'distdir:' target, which we _do_ want +MYDISTFILES = Makefile.am Makefile.in mono-wrapper.in +distdir: $(MYDISTFILES) + rm -fr $(distdir) + mkdir $(distdir) + test -z '$(MYDISTFILES)' || for file in ''$(MYDISTFILES); do \ + if test -f $$file; then d=.; else d=$(srcdir); fi; \ + cp -p $$d/$$file $(distdir) ; done + find $(distdir) -type f -exec chmod a+r {} ';' |