Commit 6ba903ad authored by Mikael Ronstrom's avatar Mikael Ronstrom

dtrace_sources also needed for non-DTrace builds

parent ed94b200
...@@ -69,6 +69,12 @@ my_config.h: config.h ...@@ -69,6 +69,12 @@ my_config.h: config.h
dist-hook: dist-hook:
$(RM) -f $(distdir)/mysql_version.h $(distdir)/my_config.h $(RM) -f $(distdir)/mysql_version.h $(distdir)/my_config.h
dtrace_sources:
if ! test -f probes_mysql.d ; then \
$(CP) -f $(top_srcdir)/include/probes_mysql.d probes_mysql.d; \
fi
echo timestamp > dtrace_sources
DTRACEPROVIDER = probes_mysql.d DTRACEPROVIDER = probes_mysql.d
if HAVE_DTRACE if HAVE_DTRACE
BUILT_SOURCES += probes_mysql_dtrace.h BUILT_SOURCES += probes_mysql_dtrace.h
...@@ -78,12 +84,6 @@ CLEANFILES += probes_mysql_dtrace.h ...@@ -78,12 +84,6 @@ CLEANFILES += probes_mysql_dtrace.h
# then we copy the probes from the source location and use that # then we copy the probes from the source location and use that
# If we are building in the same directory as the source, we do not copy # If we are building in the same directory as the source, we do not copy
dtrace_sources:
if ! test -f probes_mysql.d ; then \
$(CP) -f $(top_srcdir)/include/probes_mysql.d probes_mysql.d; \
fi
echo timestamp > dtrace_sources
probes_mysql_dtrace.h: $(DTRACEPROVIDER) probes_mysql_dtrace.h: $(DTRACEPROVIDER)
$(DTRACE) $(DTRACEFLAGS) -h -s $(DTRACEPROVIDER) -o $@ $(DTRACE) $(DTRACEFLAGS) -h -s $(DTRACEPROVIDER) -o $@
endif endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment