-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (32 loc) · 1.35 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
30
31
32
33
34
35
36
37
38
39
40
41
#
# Makefile for Thyrd
#
usage:
@echo "make fetch to get all libraries"
CSSLIB = assets/www/css
IMGLIB = assets/www/images
JSLIB = assets/www/js/lib
PLUGINS = assets/www/js/plugins
THIRDPARTY = thirdparty
fetch: requirejs jquery pouchdb less
echo "Fetch complete"
clean:
rm -rf $(THIRDPARTY)/*
misc:
wget http://lesscss.googlecode.com/files/less-1.3.0.min.js -O $(JSLIB)/less.min.js
cp server/node_modules/underscore/underscore.js $(JSLIB)/underscore.js
cp server/node_modules/pagedown/Markdown.Converter.js $(JSLIB)/Markdown.Converter.js
requirejs:
wget http://requirejs.org/docs/release/2.1.10/minified/require.js -O $(JSLIB)/require.js
wget https://raw.github.com/requirejs/text/latest/text.js -O $(PLUGINS)/text.js
wget https://raw.github.com/requirejs/domReady/latest/domReady.js -O $(PLUGINS)/domReady.js
#wget https://raw.github.com/requirejs/order/latest/order.js -O $(PLUGINS)/order.js
jquery:
wget http://code.jquery.com/jquery-2.1.0.min.js -O $(JSLIB)/jquery.min.js
pouchdb:
wget https://github.com/daleharvey/pouchdb/releases/download/1.1.0/pouchdb-1.1.0.min.js -O $(JSLIB)/pouchdb.min.js
less:
wget https://github.com/less/less.js/archive/master.zip -O $(THIRDPARTY)/less.zip
unzip $(THIRDPARTY)/less.zip -d $(THIRDPARTY)/less
rm -rf $(THIRDPARTY)/jqueryui.zip
cp $(THIRDPARTY)/less/less.js-master/dist/less-1.6.2.min.js $(JSLIB)/less.min.js