all_java_class_files = $(all_java_source_files:.java=.class)
+all_property_files = $(property_files) $(jgss_property_files) \
+ java/util/logging/logging.properties
+
## Build property files into the library.
property_files = \
gnu/regexp/MessagesBundle.properties \
@: $(call write_entries_to_file,$?,libgcj.sourcelist)
$(JAVAC) $(JCFLAGS) -classpath '' -bootclasspath $(here):$(srcdir) -d $(here) @libgcj.sourcelist
## Note that we explicitly want to include directory information.
- find java gnu javax org -type d -o -type f -name '*.class' | \
- sed -e '/\/\./d' -e '/\/xlib/d' | \
- $(ZIP) cfM0E@ $@
+ (find java gnu javax org -type d -o -type f -name '*.class'; \
+## Ugly code to avoid "echo -C". Must separate each entry by a newline
+## Gross but easy.
+ for file in $(all_property_files); do \
+ echo "x-C" | sed -e 's/^.//'; \
+ echo $(srcdir); \
+ echo $$file; \
+ done) | \
+ sed -e '/\/xlib/d' -e '/\/\.libs/d' -e '/\/\.deps/d' | \
+ $(ZIP) -cfM0E@ $@
# This next rule seems backward, but reflects the fact
# that 1) all classfiles are compiled in one go when the
.java.class:
$(JAVAC) $(JCFLAGS) -classpath '' -bootclasspath $(here):$(srcdir) -d $(here) $<
-libgcj-@gcc_version@.jar: $(all_java_class_files)
+libgcj-@gcc_version@.jar: $(all_java_class_files) $(all_property_files)
-@rm -f libgcj-@gcc_version@.jar
## Note that we explicitly want to include directory information.
- find java gnu javax org -type d -o -type f -name '*.class' | \
- sed -e '/\/\./d' -e '/\/xlib/d' | \
- $(ZIP) cfM0E@ $@
+ (find java gnu javax org -type d -o -type f -name '*.class'; \
+## Ugly code to avoid "echo -C". Must separate each entry by a newline
+## Gross but easy.
+ for file in $(all_property_files); do \
+ echo "x-C" | sed -e 's/^.//'; \
+ echo $(srcdir); \
+ echo $$file; \
+ done) | \
+ sed -e '/\/xlib/d' -e '/\/\.libs/d' -e '/\/\.deps/d' | \
+ $(ZIP) -cfM0E@ $@
endif
$(xlib_java_source_files)
all_java_class_files = $(all_java_source_files:.java=.class)
+all_property_files = $(property_files) $(jgss_property_files) \
+ java/util/logging/logging.properties
+
property_files = \
gnu/regexp/MessagesBundle.properties \
gnu/regexp/MessagesBundle_fr.properties
@ONESTEP_TRUE@ @echo Compiling Java sourcefiles...
@ONESTEP_TRUE@ @: $(call write_entries_to_file,$?,libgcj.sourcelist)
@ONESTEP_TRUE@ $(JAVAC) $(JCFLAGS) -classpath '' -bootclasspath $(here):$(srcdir) -d $(here) @libgcj.sourcelist
-@ONESTEP_TRUE@ find java gnu javax org -type d -o -type f -name '*.class' | \
-@ONESTEP_TRUE@ sed -e '/\/\./d' -e '/\/xlib/d' | \
-@ONESTEP_TRUE@ $(ZIP) cfM0E@ $@
+@ONESTEP_TRUE@ (find java gnu javax org -type d -o -type f -name '*.class'; \
+@ONESTEP_TRUE@ for file in $(all_property_files); do \
+@ONESTEP_TRUE@ echo "x-C" | sed -e 's/^.//'; \
+@ONESTEP_TRUE@ echo $(srcdir); \
+@ONESTEP_TRUE@ echo $$file; \
+@ONESTEP_TRUE@ done) | \
+@ONESTEP_TRUE@ sed -e '/\/xlib/d' -e '/\/\.libs/d' -e '/\/\.deps/d' | \
+@ONESTEP_TRUE@ $(ZIP) -cfM0E@ $@
# This next rule seems backward, but reflects the fact
# that 1) all classfiles are compiled in one go when the
@ONESTEP_FALSE@.java.class:
@ONESTEP_FALSE@ $(JAVAC) $(JCFLAGS) -classpath '' -bootclasspath $(here):$(srcdir) -d $(here) $<
-@ONESTEP_FALSE@libgcj-@gcc_version@.jar: $(all_java_class_files)
+@ONESTEP_FALSE@libgcj-@gcc_version@.jar: $(all_java_class_files) $(all_property_files)
@ONESTEP_FALSE@ -@rm -f libgcj-@gcc_version@.jar
-@ONESTEP_FALSE@ find java gnu javax org -type d -o -type f -name '*.class' | \
-@ONESTEP_FALSE@ sed -e '/\/\./d' -e '/\/xlib/d' | \
-@ONESTEP_FALSE@ $(ZIP) cfM0E@ $@
+@ONESTEP_FALSE@ (find java gnu javax org -type d -o -type f -name '*.class'; \
+@ONESTEP_FALSE@ for file in $(all_property_files); do \
+@ONESTEP_FALSE@ echo "x-C" | sed -e 's/^.//'; \
+@ONESTEP_FALSE@ echo $(srcdir); \
+@ONESTEP_FALSE@ echo $$file; \
+@ONESTEP_FALSE@ done) | \
+@ONESTEP_FALSE@ sed -e '/\/xlib/d' -e '/\/\.libs/d' -e '/\/\.deps/d' | \
+@ONESTEP_FALSE@ $(ZIP) -cfM0E@ $@
mostlyclean-local:
find . -name '*.lo' -print | xargs $(LIBTOOL) rm -f