-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
31 lines (22 loc) · 1.09 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
PLUPLOAD_JAVARUNTIME_PATH = ../plupload-java-runtime
PLUPLOAD_PATH = ../plupload
APPLET_JS_URL = https://raw.github.com/jakobadam/applet.js/master/java/applet.js
build:
mkdir -p public/applet
cd $(PLUPLOAD_JAVARUNTIME_PATH); ant
cp $(PLUPLOAD_JAVARUNTIME_PATH)/plupload.java.jar public/applet
init: clean build
mkdir -p public/js
ln -s ../$(PLUPLOAD_PATH)/src/javascript/jquery.plupload.queue/css public/css
ln -s ../$(PLUPLOAD_PATH)/src/javascript/jquery.plupload.queue/img public/img
ln -s ../../$(PLUPLOAD_PATH)/src/javascript/plupload.js public/js
ln -s ../../$(PLUPLOAD_PATH)/src/javascript/plupload.html4.js public/js
ln -s ../../$(PLUPLOAD_PATH)/src/javascript/plupload.html5.js public/js
ln -s ../../$(PLUPLOAD_JAVARUNTIME_PATH)/src/javascript/plupload.java.js public/js
ln -s ../../$(PLUPLOAD_JAVARUNTIME_PATH)/src/javascript/dojo.plupload.queue.js public/js
cd public/js; wget -q -N --no-check-certificate $(APPLET_JS_URL)
mkdir public/uploads
# give access to apache to write
chmod 777 public/uploads
clean:
rm -rf public/js public/applet public/css public/img public/uploads