INSTALL_BIN = $(INSTALL) -m 755
INSTALL_LIB = $(INSTALL_BIN)
MKINSTALLDIRS = $(SHELL) $(topdir)/mkinstalldirs
-INTERNAL_MCS = $(RUNTIME) $(topdir)/mcs/mcs.exe
+INTERNAL_MCS = $(RUNTIME) $(topdir)/class/lib/$(PROFILE)/mcs.exe
INTERNAL_MBAS = $(RUNTIME) $(topdir)/mbas/mbas.exe
INTERNAL_GMCS = $(RUNTIME) $(topdir)/gmcs/gmcs.exe
INTERNAL_ILASM = $(RUNTIME) $(topdir)/ilasm/ilasm.exe
-INTERNAL_RESGEN = $(RUNTIME) $(topdir)/monoresgen/monoresgen.exe
+INTERNAL_RESGEN = $(RUNTIME) $(topdir)/tools/resgen/resgen.exe
corlib = mscorlib.dll
depsdir = $(topdir)/build/deps
endif
%-recursive:
- @set . $$MAKEFLAGS; \
+ @set . $$MAKEFLAGS; final_exit=:; \
case $$2 in --unix) shift ;; esac; \
case $$2 in *=*) dk="exit 1" ;; *k*) dk=: ;; *) dk="exit 1" ;; esac; \
list='$(PROFILE_SUBDIRS)'; for d in $$list ; do \
- (cd $$d && $(MAKE) $*) || $$dk ; \
- done
+ (cd $$d && $(MAKE) $*) || { final_exit="exit 1"; $$dk; } ; \
+ done; \
+ $$final_exit
ifndef DIST_SUBDIRS
DIST_SUBDIRS = $(SUBDIRS) $(DIST_ONLY_SUBDIRS)
if test -f GNUmakefile; then m=GNUm; fi; \
for f in $${m}akefile $(DISTFILES) ; do \
dest=`dirname $(distdir)/$$f` ; \
- $(MKINSTALLDIRS) $$dest && cp $$f $$dest || exit 1 ; \
+ $(MKINSTALLDIRS) $$dest && cp -p $$f $$dest || exit 1 ; \
done
# Useful