From: Christian Babeux Date: Tue, 4 Nov 2014 21:28:19 +0000 (-0500) Subject: Fix: Java Agent JAR file symlink should be created after objects install X-Git-Tag: v2.6.0-rc3~9 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=dc591a148a891a1a8da4ee6e269b3970629c2996;p=lttng-ust.git Fix: Java Agent JAR file symlink should be created after objects install Signed-off-by: Christian Babeux Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust-java-agent/java/Makefile.am b/liblttng-ust-java-agent/java/Makefile.am index 5a406e4a..f9344bb0 100644 --- a/liblttng-ust-java-agent/java/Makefile.am +++ b/liblttng-ust-java-agent/java/Makefile.am @@ -46,7 +46,7 @@ classes += $(pkgpath)/log4j/*.class endif $(jarfile): classnoinst.stamp - $(JAR) cfm $(JARFLAGS) $@ $(jarfile_manifest) $(classes) && $(LN_S) $@ $(jarfile_symlink) + $(JAR) cfm $(JARFLAGS) $@ $(jarfile_manifest) $(classes) && rm -f $(jarfile_symlink) && $(LN_S) $@ $(jarfile_symlink) $(jarfile_old): classnoinst.stamp $(JAR) cf $(JARFLAGS) $@ $(pkgpath)/*.class \ @@ -62,11 +62,11 @@ log4j-jni-header.stamp: $(dist_noinst_JAVA) all-local: $(stamp) -install-data-local: - cd $(DESTDIR)/$(jardir); rm -f $(jarfile_symlink); $(LN_S) $(jarfile) $(jarfile_symlink) +install-data-hook: + cd $(DESTDIR)/$(jardir) && rm -f $(jarfile_symlink) && $(LN_S) $(jarfile) $(jarfile_symlink) -uninstall-local: - cd $(DESTDIR)/$(jardir); rm -f $(jarfile_symlink) +uninstall-hook: + cd $(DESTDIR)/$(jardir) && rm -f $(jarfile_symlink) CLEANFILES = $(jarfile) $(jarfile_old) $(pkgpath)/*.class $(pkgpath_old)/*.class $(pkgpath)/jul/*.class \ $(pkgpath)/log4j/*.class jul-jni-header.stamp log4j-jni-header.stamp \