diff options
author | Mikael Ronstrom <mikael@mysql.com> | 2009-02-20 23:11:09 +0100 |
---|---|---|
committer | Mikael Ronstrom <mikael@mysql.com> | 2009-02-20 23:11:09 +0100 |
commit | 391fff8f738b35685f37c375d8ac6c15ee58605b (patch) | |
tree | 3e9cb50848a008e4e8d20b04037c984b26631535 /include/Makefile.am | |
parent | 5767c1f826fc3b5ddb2199119cfbd1df110e8fe4 (diff) | |
download | mariadb-git-391fff8f738b35685f37c375d8ac6c15ee58605b.tar.gz |
A workaround to handle the problem with that
abs_top_srcdir doesn't work on some automake
platforms.
Done by copying the .d files to the build
directories.
Diffstat (limited to 'include/Makefile.am')
-rw-r--r-- | include/Makefile.am | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/Makefile.am b/include/Makefile.am index 22305ba57c3..0bf4f70d3a4 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -15,7 +15,7 @@ # Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, # MA 02111-1307, USA -BUILT_SOURCES = $(HEADERS_GEN_MAKE) link_sources +BUILT_SOURCES = $(HEADERS_GEN_MAKE) link_sources dtrace_sources HEADERS_GEN_CONFIGURE = mysql_version.h HEADERS_GEN_MAKE = my_config.h HEADERS_ABI = mysql.h mysql_com.h mysql_time.h \ @@ -69,11 +69,21 @@ my_config.h: config.h dist-hook: $(RM) -f $(distdir)/mysql_version.h $(distdir)/my_config.h -DTRACEPROVIDER = $(top_srcdir)/sql/probes_mysql.d +DTRACEPROVIDER = probes_mysql.d if HAVE_DTRACE BUILT_SOURCES += probes_mysql_dtrace.h CLEANFILES += probes_mysql_dtrace.h +# Fake for creating the probes file. If we are building a separate directory +# 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 + +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) $(DTRACE) $(DTRACEFLAGS) -h -s $(DTRACEPROVIDER) -o $@ endif |