summaryrefslogtreecommitdiff
path: root/storage/myisam
diff options
context:
space:
mode:
authorMikael Ronstrom <mikael@mysql.com>2009-02-20 23:11:09 +0100
committerMikael Ronstrom <mikael@mysql.com>2009-02-20 23:11:09 +0100
commit391fff8f738b35685f37c375d8ac6c15ee58605b (patch)
tree3e9cb50848a008e4e8d20b04037c984b26631535 /storage/myisam
parent5767c1f826fc3b5ddb2199119cfbd1df110e8fe4 (diff)
downloadmariadb-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 'storage/myisam')
-rw-r--r--storage/myisam/Makefile.am11
1 files changed, 8 insertions, 3 deletions
diff --git a/storage/myisam/Makefile.am b/storage/myisam/Makefile.am
index 76d98fbd97b..c7593cb7fb3 100644
--- a/storage/myisam/Makefile.am
+++ b/storage/myisam/Makefile.am
@@ -155,13 +155,18 @@ libmyisam_a_LIBADD = probes_mysql.o
libmyisam_a_DEPENDENCIES = probes_mysql.o dtrace_files dtrace_providers
CLEANFILES += probes_mysql.o dtrace_files dtrace_providers
DTRACEFILES = ha_myisam.o
-DTRACEPROVIDER = $(top_srcdir)/sql/probes_mysql.d
+DTRACEPROVIDER = probes_mysql.d
dtrace_files:
echo $(DTRACEFILES) > $@
-dtrace_providers:
+dtrace_providers: dtrace_sources
echo $(DTRACEPROVIDER) > $@
-probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES)
+dtrace_sources:
+ -$(RM) -f probes_mysql.d
+ $(CP) $(top_srcdir)/include/probes_mysql.d probes_mysql.d
+ echo timestamp > dtrace_sources
+
+probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES) dtrace_sources
$(DTRACE) $(DTRACEFLAGS) -G -s $(DTRACEPROVIDER) $(DTRACEFILES) -o $@
endif