From: Mathieu Desnoyers Date: Tue, 12 Apr 2016 02:24:25 +0000 (-0400) Subject: Fix: add version to lttng-ust-agent-all jar file X-Git-Tag: v2.9.0-rc1~137 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=48d0c22a3d4a1a781ea78743325cee8a749bdd55;p=lttng-ust.git Fix: add version to lttng-ust-agent-all jar file Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust-java-agent/java/lttng-ust-agent-all/Makefile.am b/liblttng-ust-java-agent/java/lttng-ust-agent-all/Makefile.am index 1dd3b86d..cf3f3c3b 100644 --- a/liblttng-ust-java-agent/java/lttng-ust-agent-all/Makefile.am +++ b/liblttng-ust-java-agent/java/lttng-ust-agent-all/Makefile.am @@ -1,7 +1,9 @@ JAVAROOT = . +jarfile_version = 1.0.0 jarfile_manifest = $(srcdir)/Manifest.txt -jarfile = lttng-ust-agent-all.jar +jarfile_symlink = lttng-ust-agent-all.jar +jarfile = lttng-ust-agent-all-$(jarfile_version).jar # Compatibility symlink provided for applications expecting the agent # jar file installed by UST 2.7. @@ -14,11 +16,14 @@ dist_noinst_DATA = $(jarfile_manifest) jar_DATA = $(jarfile) $(jarfile): - $(JAR) cfm $(JARFLAGS) $@ $(jarfile_manifest) && rm -f $(jarfile_compat_symlink) && $(LN_S) $@ $(jarfile_compat_symlink) + $(JAR) cfm $(JARFLAGS) $@ $(jarfile_manifest) \ + && rm -f $(jarfile_symlink) && $(LN_S) $@ $(jarfile_symlink) \ + && rm -f $(jarfile_compat_symlink) && $(LN_S) $(jarfile_symlink) $(jarfile_compat_symlink) install-data-hook: - cd $(DESTDIR)/$(jardir) && rm -f $(jarfile_compat_symlink) && $(LN_S) $(jarfile) $(jarfile_compat_symlink) + cd $(DESTDIR)/$(jardir) \ + && rm -f $(jarfile_symlink) && $(LN_S) $(jarfile) $(jarfile_symlink) \ + && rm -f $(jarfile_compat_symlink) && $(LN_S) $(jarfile_symlink) $(jarfile_compat_symlink) uninstall-hook: - cd $(DESTDIR)/$(jardir) && rm -f $(jarfile_compat_symlink) - + cd $(DESTDIR)/$(jardir) && rm -f $(jarfile_symlink) && rm -f $(jarfile_compat_symlink)