[java-atk-wrapper/wip] Build: fix DEP_CLASSES wildcard compiler warning



commit 4078b8c620be6a4a6dada0f7ed3c742043d280bf
Author: Magdalen Berns <m berns thismagpie com>
Date:   Mon Jun 29 21:46:46 2015 +0100

    Build: fix DEP_CLASSES wildcard compiler warning
    
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=751674

 wrapper/Makefile.am |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/wrapper/Makefile.am b/wrapper/Makefile.am
index 4f350f8..b338c67 100644
--- a/wrapper/Makefile.am
+++ b/wrapper/Makefile.am
@@ -1,7 +1,7 @@
 SUBDIRS=org
 JARFILES=java-atk-wrapper.jar
 ALL_CLASSES=org/GNOME/Accessibility/*.class
-DEP_CLASSES=$(wildcard $(ALL_CLASSES))
+DEP_CLASSES=$(ALL_CLASSES)
 
 if USER
 java_atk_wrapperdir = $(JAVA_HOME)/lib/ext
@@ -14,6 +14,18 @@ endif
 java_atk_wrapper_DATA = $(JARFILES)
 properties_DATA = accessibility.properties
 EXTRA_DIST = $(properties_DATA)
+dist-hook:
+srcdir_cnt=`echo $(srcdir) | wc -c`; \
+for file in $(ALL_CLASSES); do \
+f=`echo $$file | cut -c$$srcdir_cnt-`; \
+fdir=`dirname $$f`; \
+if test ! -d $(distdir)/$$fdir; then \
+echo "$(makeinstalldirs) $(distdir)/$$fdir"; \
+$(mkinstalldirs) $(distdir)/$$fdir; \
+fi; \
+echo "cp -p $$file $(distdir)/$$f"; \
+cp -p $$file $(distdir)/$$f; \
+done
 
 $(JARFILES) : $(DEP_CLASSES)
        $(JAR) cfm $(JARFILES) manifest.txt org/GNOME/Accessibility/*.class


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