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 | ed94b2008ef734e548173366bb8f045bdd122c81 (patch) | |
tree | 3e9cb50848a008e4e8d20b04037c984b26631535 /mysys/Makefile.am | |
parent | 2c82616b2391721a46a46a9129af02c80795e374 (diff) | |
download | mariadb-git-ed94b2008ef734e548173366bb8f045bdd122c81.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 'mysys/Makefile.am')
-rw-r--r-- | mysys/Makefile.am | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/mysys/Makefile.am b/mysys/Makefile.am index 7e9b53f2015..afe558a5c06 100644 --- a/mysys/Makefile.am +++ b/mysys/Makefile.am @@ -131,13 +131,18 @@ libmysys_a_LIBADD += probes_mysql.o libmysys_a_DEPENDENCIES += probes_mysql.o dtrace_files dtrace_providers CLEANFILES = probes_mysql.o dtrace_files dtrace_providers DTRACEFILES = mf_keycache.o -DTRACEPROVIDER = $(top_srcdir)/sql/probes_mysql.d +DTRACEPROVIDER = probes_mysql.d dtrace_files: echo $(DTRACEFILES) > $@ -dtrace_providers: - echo $(DTRACEPROVIDER) > $@ -probes_mysql.o: $(DTRACEPROVIDER) $(DTRACEFILES) +dtrace_providers: dtrace_sources + echo $(SQL_DTRACEPROVIDER) > $@ +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 |