summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-16 15:22:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-16 15:22:37 +0000
commiteb40d20e30a7eaf23da16e32c63101ec05d346f6 (patch)
tree2b81c8bfd52991f27c4067ae199919b74ab99fcf /Makefile.in
parente4479a1c1bad695070fd435f958dfc98c4e63f0d (diff)
probes.h: select by suffix rules
* Makefile.in, common.mk, configure.in, win32/Makefile.sub (probes.h): select generating with dtrace or copying dummy file by suffix rules. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in21
1 files changed, 10 insertions, 11 deletions
diff --git a/Makefile.in b/Makefile.in
index 5f525011ca..9df9dcbb04 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -148,7 +148,7 @@ OBJCOPY = @OBJCOPY@
VCS = @VCS@
VCSUP = @VCSUP@
DTRACE = @DTRACE@
-DTRACE_AVAILABLE = @DTRACE_AVAILABLE@
+DTRACE_EXT = @DTRACE_EXT@
OBJEXT = @OBJEXT@
ASMEXT = S
@@ -164,6 +164,9 @@ NEWLINE_C = newline.c
MINIPRELUDE_C = miniprelude.c
SRC_FILE = $<
+OS_SRC_FILE = $<
+DEST_FILE = $@
+OS_DEST_FILE = $@
MESSAGE_BEGIN = @for line in
MESSAGE_END = ; do echo "$$line"; done
@@ -323,17 +326,13 @@ enc/unicode/name2ctype.h: enc/unicode/name2ctype.kwd
@$(ECHO) preprocessing $<
$(Q) $(CPP) $(warnflags) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -E $< > $@
-probes.h: $(DTRACE_AVAILABLE)-dtrace-probes.h
+probes.h: probes.$(DTRACE_EXT)
-yes-dtrace-probes.h:
- @$(ECHO) translating probes $(srcdir)/probes.d
- $(Q) $(DTRACE) -o probes.h.tmp -h -s $(srcdir)/probes.d
- $(Q) sed -e 's/RUBY_/RUBY_DTRACE_/g' -e 's/PROBES_H_TMP/PROBES_H/g' probes.h.tmp > probes.h
- $(Q) $(RM) probes.h.tmp
-
-no-dtrace-probes.h: $(srcdir)/dmyprobes.h
- @$(ECHO) copying dummy probes.h
- $(Q) $(CP) $(srcdir)/dmyprobes.h probes.h
+.d.h:
+ @$(ECHO) translating probes $<
+ $(Q) $(DTRACE) -o $@.tmp -h -s $<
+ $(Q) sed -e 's/RUBY_/RUBY_DTRACE_/g' -e 's/PROBES_H_TMP/PROBES_H/g' $@.tmp > $@
+ $(Q) $(RM) $@.tmp
clean-local::
$(Q)$(RM) ext/extinit.c ext/extinit.$(OBJEXT) ext/ripper/y.output \