From 4401b4571954870ac75cc7bb9949aeb2d1c17de5 Mon Sep 17 00:00:00 2001 From: Raja R Harinath Date: Thu, 25 Nov 2004 12:27:59 +0000 Subject: * 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 --- runtime/Makefile.am | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'runtime') 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 {} ';' -- cgit v1.2.3