2009-06-03 09:22:46 +08:00
|
|
|
SUBDIRS = com
|
2013-10-04 05:26:35 +08:00
|
|
|
scrollview_path = @datadir@/tessdata
|
2008-02-01 08:49:38 +08:00
|
|
|
|
2012-03-16 05:05:12 +08:00
|
|
|
JAVAC = javac
|
|
|
|
JAR = jar
|
|
|
|
|
2012-09-22 01:36:27 +08:00
|
|
|
if !GRAPHICS_DISABLED
|
2012-03-16 05:05:12 +08:00
|
|
|
SCROLLVIEW_FILES = \
|
2013-10-04 05:26:35 +08:00
|
|
|
$(srcdir)/com/google/scrollview/ui/SVAbstractMenuItem.java \
|
|
|
|
$(srcdir)/com/google/scrollview/ui/SVCheckboxMenuItem.java \
|
|
|
|
$(srcdir)/com/google/scrollview/ui/SVEmptyMenuItem.java \
|
|
|
|
$(srcdir)/com/google/scrollview/events/SVEvent.java \
|
|
|
|
$(srcdir)/com/google/scrollview/events/SVEventHandler.java \
|
|
|
|
$(srcdir)/com/google/scrollview/events/SVEventType.java \
|
|
|
|
$(srcdir)/com/google/scrollview/ui/SVImageHandler.java \
|
|
|
|
$(srcdir)/com/google/scrollview/ui/SVMenuBar.java \
|
|
|
|
$(srcdir)/com/google/scrollview/ui/SVMenuItem.java \
|
|
|
|
$(srcdir)/com/google/scrollview/ui/SVPopupMenu.java \
|
|
|
|
$(srcdir)/com/google/scrollview/ui/SVSubMenuItem.java \
|
|
|
|
$(srcdir)/com/google/scrollview/ui/SVWindow.java \
|
|
|
|
$(srcdir)/com/google/scrollview/ScrollView.java
|
2012-03-16 05:05:12 +08:00
|
|
|
|
|
|
|
SCROLLVIEW_CLASSES = \
|
2013-10-06 05:33:07 +08:00
|
|
|
com/google/scrollview/ui/SVAbstractMenuItem.class \
|
|
|
|
com/google/scrollview/ui/SVCheckboxMenuItem.class \
|
|
|
|
com/google/scrollview/ui/SVEmptyMenuItem.class \
|
|
|
|
com/google/scrollview/events/SVEvent.class \
|
|
|
|
com/google/scrollview/events/SVEventHandler.class \
|
|
|
|
com/google/scrollview/events/SVEventType.class \
|
|
|
|
com/google/scrollview/ui/SVImageHandler.class \
|
|
|
|
com/google/scrollview/ui/SVMenuBar.class \
|
|
|
|
com/google/scrollview/ui/SVMenuItem.class \
|
|
|
|
com/google/scrollview/ui/SVPopupMenu.class \
|
|
|
|
com/google/scrollview/ui/SVSubMenuItem.class \
|
|
|
|
com/google/scrollview/ui/SVWindow.class \
|
|
|
|
com/google/scrollview/ScrollView.class
|
2012-03-16 05:05:12 +08:00
|
|
|
|
|
|
|
SCROLLVIEW_LIBS = \
|
2014-01-29 10:24:32 +08:00
|
|
|
$(srcdir)/piccolo2d-core-3.0.jar \
|
|
|
|
$(srcdir)/piccolo2d-extras-3.0.jar
|
2012-03-16 05:05:12 +08:00
|
|
|
|
2014-01-29 10:24:32 +08:00
|
|
|
CLASSPATH = $(srcdir)/piccolo2d-core-3.0.jar:$(srcdir)/piccolo2d-extras-3.0.jar
|
2012-03-16 05:05:12 +08:00
|
|
|
|
|
|
|
ScrollView.jar : $(SCROLLVIEW_CLASSES)
|
2015-06-24 04:19:18 +08:00
|
|
|
$(JAR) cfm $@ Manifest.txt com/google/scrollview/*.class \
|
2013-10-06 05:33:07 +08:00
|
|
|
com/google/scrollview/events/*.class com/google/scrollview/ui/*.class
|
2012-03-16 05:05:12 +08:00
|
|
|
|
|
|
|
$(SCROLLVIEW_CLASSES) : $(SCROLLVIEW_FILES)
|
2013-10-06 05:33:07 +08:00
|
|
|
$(JAVAC) -encoding UTF8 -sourcepath $(srcdir) -classpath $(CLASSPATH) $(SCROLLVIEW_FILES) -d $(builddir)
|
2013-10-04 05:26:35 +08:00
|
|
|
|
2015-06-24 04:19:18 +08:00
|
|
|
fetch-jars :
|
|
|
|
curl -L http://search.maven.org/remotecontent?filepath=org/piccolo2d/piccolo2d-core/3.0/piccolo2d-core-3.0.jar > piccolo2d-core-3.0.jar
|
|
|
|
curl -L http://search.maven.org/remotecontent?filepath=org/piccolo2d/piccolo2d-extras/3.0/piccolo2d-extras-3.0.jar > piccolo2d-extras-3.0.jar
|
|
|
|
|
2013-10-04 05:26:35 +08:00
|
|
|
.PHONY: install-jars
|
|
|
|
install-jars : ScrollView.jar
|
|
|
|
@if [ ! -d $(scrollview_path) ]; then mkdir -p $(scrollview_path); fi;
|
2013-10-06 05:33:07 +08:00
|
|
|
$(INSTALL) -m 644 $(SCROLLVIEW_LIBS) $(scrollview_path);
|
2013-10-04 05:26:35 +08:00
|
|
|
$(INSTALL) -m 644 ScrollView.jar $(scrollview_path);
|
2015-09-15 04:18:44 +08:00
|
|
|
@echo "Don't forget to set environment variable SCROLLVIEW_PATH to $(scrollview_path)";
|
2013-10-04 05:26:35 +08:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -f $(scrollview_path)/*.jar
|
2012-09-22 01:36:27 +08:00
|
|
|
endif
|
2012-03-16 05:05:12 +08:00
|
|
|
|
|
|
|
clean :
|
2013-10-06 05:33:07 +08:00
|
|
|
rm -f ScrollView.jar *.class $(srcdir)/*.class
|
2012-03-16 05:05:12 +08:00
|
|
|
|
|
|
|
# all-am does nothing, to make the java part optional.
|
|
|
|
all all-am install :
|