login/pass: error messages below page title
[minimedit.git] / Makefile
1 foto: lib/album.js lib/photoswipe.css lib/photoswipe-ui
2
3 lib/album.js: lib/.photoswipe/dist/photoswipe.min.js lib/.photoswipe/dist/photoswipe-ui-default.min.js lib/.justified/dist/justified-layout.js
4         cat $^ >$@
5
6 lib/photoswipe.css: lib/.photoswipe/dist/photoswipe.css
7         ln -sf ../$^ $@
8
9 lib/photoswipe-ui: lib/.photoswipe/dist/default-skin
10         ln -sf ../$^ $@
11
12 lib/.photoswipe/dist/photoswipe.css: lib/.photoswipe
13 lib/.photoswipe/dist/photoswipe.min.js: lib/.photoswipe
14 lib/.photoswipe/dist/default-skin: lib/.photoswipe
15
16 lib/.photoswipe:
17         git clone https://github.com/dimsemenov/PhotoSwipe $@
18
19 lib/.justified/dist/justified-layout.js: lib/.justified
20
21 lib/.justified:
22         git clone https://github.com/flickr/justified-layout $@
23
24 lib/.ckeditor: lib/.ckeditor-build.js
25         git clone git://github.com/ckeditor/ckeditor-dev $@
26         cp $^ lib/.ckeditor/dev/builder/build-config.js
27
28 lib/ckeditor: lib/.ckeditor
29         /bin/bash $^/dev/builder/build.sh
30         cat $^/dev/builder/release/ckeditor/lang/nl.js >>$^/dev/builder/release/ckeditor/ckeditor.js #TODO: strip headers
31         #TODO: cat dialogs psw-filters >>js
32         ln -s .ckeditor/dev/builder/release/ckeditor $@
33
34 .fontello.url: .fontello-config.json
35         curl -sSf -o $@ --form 'config=@$<' https://fontello.com
36
37 .fontello.zip: .fontello.url
38         curl -sSf -o $@ https://fontello.com/$$(cat $<)/get
39
40 minimedit.%: .fontello.zip
41         unzip -q -j -DD -o $< '*/$@'