summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in16
1 files changed, 11 insertions, 5 deletions
diff --git a/Makefile.in b/Makefile.in
index 776c08d53..f4a4f785d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -4,6 +4,7 @@ NULLCMD = :
#### Start of system configuration section. ####
srcdir = @srcdir@
+top_srcdir = $(srcdir)
hdrdir = $(srcdir)/include
CC = @CC@
@@ -94,6 +95,7 @@ MAKEDIRS = @MAKEDIRS@
CP = cp
MV = mv
RM = rm -f
+RMDIRS = @RMDIRS@
NM = @NM@
AR = @AR@
ARFLAGS = rcu
@@ -219,8 +221,12 @@ clean-local::
distclean-local::
@$(RM) ext/config.cache $(RBCONFIG)
- -$(RM) $(INSTALLED_LIST) $(arch_hdrdir)/ruby/config.h
- -rmdir -p $(arch_hdrdir)/ruby
+ @-$(RM) run.gdb
+ @-$(RM) $(INSTALLED_LIST) $(arch_hdrdir)/ruby/config.h
+ @-$(RMDIRS) $(arch_hdrdir)/ruby
+
+distclean-rdoc:
+ @$(RMALL) $(RDOCOUT:/=\)
clean-ext distclean-ext realclean-ext::
@set dummy ${EXTS}; shift; \
@@ -228,13 +234,13 @@ clean-ext distclean-ext realclean-ext::
set dummy `find ext -name Makefile | sed 's:^ext/::;s:/Makefile$$::' | sort`; \
shift; \
fi; \
- cd ext; \
for dir; do \
+ [ -f "ext/$$dir/Makefile" ] || continue; \
echo $(@:-ext=)ing "$$dir"; \
- (cd "$$dir"; $(MAKE) $(MFLAGS) $(@:-ext=)) && \
+ (cd "ext/$$dir" && exec $(MAKE) $(MFLAGS) $(@:-ext=)) && \
case "$@" in \
*distclean-ext*|*realclean-ext*) \
- rmdir -p "$$dir" 2> /dev/null;; \
+ $(RMDIRS) "ext/$$dir";; \
esac; \
done