Ticket #1572: openlayers-makefile.txt

File openlayers-makefile.txt, 1.5 KB (added by stoecker, 18 years ago)
Line 
1Index: META-INF/MANIFEST.MF
2===================================================================
3--- META-INF/MANIFEST.MF (revision 0)
4+++ META-INF/MANIFEST.MF (revision 0)
5@@ -0,0 +1,8 @@
6+Manifest-Version: 1.0
7+Created-By: 1.5.0_13-b05 (Sun Microsystems Inc.)
8+Plugin-Class: org.openstreetmap.josm.plugins.openLayers.OpenLayersPlugin
9+Plugin-Description: OpenLayers downloader layer for tracing over
10+Plugin-Version: 1337
11+Plugin-Date: 2007-10-26T09:40:20.516999Z
12+Author: Francisco R. Santos <frsantos@gmail.com>
13+
14Index: Makefile
15===================================================================
16--- Makefile (revision 0)
17+++ Makefile (revision 0)
18@@ -0,0 +1,29 @@
19+OLJAR=ol.jar
20+CPATH=src
21+JPATH=$(CPATH)/org/openstreetmap/josm/plugins/openLayers
22+
23+all: $(OLJAR)
24+
25+$(JPATH)/OpenLayersPlugin.class: $(JPATH)/*.java $(CPATH)/org/lobobrowser
26+ javac -cp $(CPATH) $(JPATH)/*.java
27+
28+$(OLJAR): META-INF/MANIFEST.MF $(JPATH)/OpenLayersPlugin.class
29+ OBJS=`echo $(JPATH)/*.class` && \
30+ ln -sf $(CPATH)/{com,edu,net,presets,styles,org,*.xml} . && \
31+ cp -ua $(CPATH)/images/* images/ && \
32+ jar -cvfm ol.jar META-INF/MANIFEST.MF images resources \
33+ $${OBJS//$(CPATH)\//} com edu net presets styles \
34+ ehcache-failsafe.xml org/apache org/lobobrowser org/mozilla org/w3c
35+
36+install: $(OLJAR)
37+ mkdir -p ~/.josm/plugins
38+ cp $^ ~/.josm/plugins/
39+
40+uninstall:
41+ rm -rf ~/.josm/plugins/$(OLJAR)
42+
43+clean:
44+ rm -rf $(JPATH)/*.class $(OLJAR)
45+
46+$(CPATH)/org/lobobrowser: lib/*.jar /usr/lib/josm/josm.jar
47+ for f in $^; do unzip -n "$$f" -d $(CPATH); done