[java-libglom] Generate a *-sources.jar too, as needed by the sonatype.org repository.



commit 3f18b043198282b0d2ad0db1b59d5658f0ffd7c0
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Jan 18 14:59:32 2012 +0100

    Generate a *-sources.jar too, as needed by the sonatype.org repository.
    
    * Makefile.am: Explicitly call jar to generate the sources jar.

 ChangeLog   |    6 ++++++
 Makefile.am |    7 ++++++-
 2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0f40f26..6b8a961 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-01-18  Murray Cumming  <murrayc localhost localdomain>
+
+	Generate a *-sources.jar too, as needed by the sonatype.org repository.
+
+	* Makefile.am: Explicitly call jar to generate the sources jar.
+
 2012-01-18  Murray Cumming  <murrayc murrayc com>
 
 	Generate a *-javadoc.jar too, as needed by the sonatype.org repository.
diff --git a/Makefile.am b/Makefile.am
index 63d6992..a10435c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -28,6 +28,7 @@ SUBDIRS =
 
 jarfile = java-libglom- PACKAGE_VERSION@.jar
 doc_jarfile = java-libglom- PACKAGE_VERSION@-javadoc.jar
+sources_jarfile = java-libglom- PACKAGE_VERSION@-sources.jar
 jardir = $(datadir)/java
 
 generated_java_sources = src/main/java/org/glom/libglom/BakeryDocument.java \
@@ -91,6 +92,7 @@ swig_sources = src/glom.i \
 
 java_binaries = $(top_builddir)/$(jarfile) \
                 $(top_builddir)/$(doc_jarfile) \
+                $(top_builddir)/$(sources_jarfile) \
                 $(top_builddir)/org/glom/libglom/*.class \
                 $(top_builddir)/src/test/java/org/glom/libglom/tests/*.class \
                 $(top_builddir)/src/examples/org/glom/libglom/examples/*.class
@@ -145,7 +147,7 @@ src/glom_wrap.cc: $(swig_dependencies)
 $(jarfile): classdist_noinst.stamp
 	$(JAR) cf $(JARFLAGS) $(top_builddir)/$(jarfile) org
 
-all-local: $(jarfile) $(doc_jarfile) tests-and-examples.stamp
+all-local: $(jarfile) $(doc_jarfile) $(sources_jarfile)  tests-and-examples.stamp
 
 # This uses mvn to install the .jar file in the local .m2 directory.
 # and install our .pom file alongside it.
@@ -184,3 +186,6 @@ docbuild: $(jarfile)
 $(doc_jarfile): docbuild
 	$(JAR) cf $(JARFLAGS) $(top_builddir)/$(doc_jarfile) doc/*
 
+$(sources_jarfile): $(generated_java_sources)
+	$(JAR) cf $(JARFLAGS) $(top_builddir)/$(sources_jarfile) src/main/java
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]