Skip to content
This repository
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 190 lines (135 sloc) 14.693 kb
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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
NOW = $(shell date "+%Y.1%m.1%d.1%H%M")

all: server/webintents/static/cache.manifest production

release: ./src/webintents.js ./src/json2.js ./src/base64.js ./src/webintents-prefix.js
cat ./src/webintents.js ./src/json2.js ./src/base64.js > webintents.js
cp webintents.js server/webintents/static/webintents.js
cp ./src/webintents-prefix.js server/webintents/static/webintents-prefix.js
cp webintents.js server/webintents/static/webintents.js

production: server/webintents/static/cache.manifest release
uglifyjs webintents.js > server/webintents/static/webintents.min.js

server/webintents/static/webintents.js:

# Manifest depends on changes to other files, so include them in the dependency chain
server/webintents/static/cache.manifest: server/webintents/cache.manifest.src server/webintents/static/list.html server/webintents/static/picker.html server/webintents/static/picker.js server/webintents/static/webintents.js server/webintents/static/intents.html server/webintents/static/json2.js server/webintents/static/webintents-server.js server/webintents/static/controller.js server/webintents/static/base64.js
cat server/webintents/cache.manifest.src > server/webintents/static/cache.manifest
echo '#' `date` >> server/webintents/static/cache.manifest

tools: chrome

chrome: extensions apps

apps: tools/chrome/apps/hosted/picksomeipsum.crx
./packcrx.sh tools/chrome/apps/hosted/cloudfilepicker tools/chrome/key.pem
./packcrx.sh tools/chrome/apps/hosted/imagemator tools/chrome/key.pem
./packcrx.sh tools/chrome/apps/hosted/inspirationmator tools/chrome/key.pem
./packcrx.sh tools/chrome/apps/hosted/mememator tools/chrome/key.pem
./packcrx.sh tools/chrome/apps/hosted/quicksnapr tools/chrome/key.pem
./packcrx.sh tools/chrome/apps/packaged/scrapbook tools/chrome/key.pem

tools/chrome/apps/hosted/picksomeipsum/manifest.json: tools/chrome/apps/hosted/picksomeipsum-manifest.json
cat ./tools/chrome/apps/hosted/picksomeipsum-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/apps/hosted/picksomeipsum/manifest.json

tools/chrome/apps/hosted/picksomeipsum.crx: tools/chrome/apps/hosted/picksomeipsum/manifest.json tools/chrome/apps/hosted/picksomeipsum/128.png
./packcrx.sh tools/chrome/apps/hosted/picksomeipsum tools/chrome/key.pem

extensions: tools/chrome/extensions/subscribe.crx tools/chrome/extensions/share.crx tools/chrome/extensions/share-services/imgur.crx tools/chrome/extensions/share-services/google+.crx tools/chrome/extensions/share-services/twitter.crx tools/chrome/extensions/share-services/blogger.crx tools/chrome/extensions/share-services/tumblr.crx tools/chrome/extensions/share-services/digg.crx tools/chrome/extensions/share-services/linkedin.crx tools/chrome/extensions/share-services/delicious.crx tools/chrome/extensions/share-services/reddit.crx tools/chrome/extensions/share-services/gmail.crx tools/chrome/extensions/share-services/hackernews.crx tools/chrome/extensions/shorten-services/bit.ly.crx tools/chrome/extensions/shorten-services/goo.gl.crx tools/chrome/extensions/save-services/box.crx tools/chrome/extensions/save-services/readitlater.crx tools/chrome/extensions/save-services/instapaper.crx tools/chrome/extensions/pick-services/pickhtml.crx tools/chrome/extensions/pick-services/pickbookmark.crx tools/chrome/extensions/pick-services/pickscreenshot.crx
./packcrx.sh tools/chrome/extensions/shorten tools/chrome/key.pem
./packcrx.sh tools/chrome/extensions/desktop tools/chrome/key.pem
./packcrx.sh tools/chrome/extensions/edit tools/chrome/key.pem

tools/chrome/extensions/share/manifest.json: tools/chrome/extensions/share-manifest.json
cat ./tools/chrome/extensions/share-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/extensions/share/manifest.json

tools/chrome/extensions/share.crx: tools/chrome/extensions/share/manifest.json tools/chrome/extensions/share/background.js
./packcrx.sh tools/chrome/extensions/share tools/chrome/key.pem

tools/chrome/extensions/subscribe/manifest.json: tools/chrome/extensions/subscribe-manifest.json
cat ./tools/chrome/extensions/subscribe-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/extensions/subscribe/manifest.json

tools/chrome/extensions/subscribe.crx: tools/chrome/extensions/share/manifest.json tools/chrome/extensions/subscribe/background.js
./packcrx.sh tools/chrome/extensions/subscribe tools/chrome/key.pem

tools/chrome/extensions/share-services/imgur/manifest.json: tools/chrome/extensions/share-services/imgur-manifest.json
cat ./tools/chrome/extensions/share-services/imgur-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/extensions/share-services/imgur/manifest.json

tools/chrome/extensions/share-services/imgur.crx: tools/chrome/extensions/share-services/imgur/manifest.json tools/chrome/extensions/share-services/imgur/launch.html
./packcrx.sh tools/chrome/extensions/share-services/imgur tools/chrome/key.pem

tools/chrome/extensions/save-services/instapaper/manifest.json:
cat ./tools/chrome/extensions/save-services/instapaper-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/extensions/save-services/instapaper/manifest.json

tools/chrome/extensions/save-services/instapaper.crx: tools/chrome/extensions/save-services/instapaper/manifest.json tools/chrome/extensions/save-services/instapaper/launch.html
./packcrx.sh tools/chrome/extensions/save-services/instapaper tools/chrome/key.pem

tools/chrome/extensions/save-services/readitlater/manifest.json:
cat ./tools/chrome/extensions/save-services/readitlater-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/extensions/save-services/readitlater/manifest.json

tools/chrome/extensions/save-services/readitlater.crx: tools/chrome/extensions/save-services/readitlater/manifest.json tools/chrome/extensions/save-services/readitlater/launch.html
./packcrx.sh tools/chrome/extensions/save-services/readitlater tools/chrome/key.pem

tools/chrome/extensions/save-services/box/manifest.json:
cat ./tools/chrome/extensions/save-services/box-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/extensions/save-services/box/manifest.json

tools/chrome/extensions/save-services/box.crx: tools/chrome/extensions/save-services/box/manifest.json tools/chrome/extensions/save-services/box/box.html
./packcrx.sh tools/chrome/extensions/save-services/box tools/chrome/key.pem

tools/chrome/extensions/shorten-services/bit.ly/manifest.json:
cat ./tools/chrome/extensions/shorten-services/bit.ly-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/extensions/shorten-services/bit.ly/manifest.json

tools/chrome/extensions/shorten-services/bit.ly.crx: tools/chrome/extensions/shorten-services/bit.ly/manifest.json tools/chrome/extensions/shorten-services/bit.ly/launch.html
./packcrx.sh tools/chrome/extensions/shorten-services/bit.ly tools/chrome/key.pem

tools/chrome/extensions/shorten-services/goo.gl/manifest.json:
cat ./tools/chrome/extensions/shorten-services/goo.gl-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/extensions/shorten-services/goo.gl/manifest.json

tools/chrome/extensions/shorten-services/goo.gl.crx: tools/chrome/extensions/shorten-services/goo.gl/manifest.json tools/chrome/extensions/shorten-services/goo.gl/launch.html
./packcrx.sh tools/chrome/extensions/shorten-services/goo.gl tools/chrome/key.pem

tools/chrome/extensions/share-services/twitter.crx: tools/chrome/extensions/share-services/twitter/manifest.json tools/chrome/extensions/share-services/twitter/twitter_inline.html
./packcrx.sh tools/chrome/extensions/share-services/twitter tools/chrome/key.pem

tools/chrome/extensions/share-services/twitter/manifest.json: tools/chrome/extensions/share-services/twitter-manifest.json
cat ./tools/chrome/extensions/share-services/twitter-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/extensions/share-services/twitter/manifest.json

tools/chrome/extensions/share-services/google+.crx: tools/chrome/extensions/share-services/google+/manifest.json tools/chrome/extensions/share-services/google+/launch.html
./packcrx.sh tools/chrome/extensions/share-services/google+ tools/chrome/key.pem

tools/chrome/extensions/share-services/google+/manifest.json: tools/chrome/extensions/share-services/google+-manifest.json
cat ./tools/chrome/extensions/share-services/google+-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/extensions/share-services/google+/manifest.json

tools/chrome/extensions/share-services/tumblr/manifest.json:
cat ./tools/chrome/extensions/share-services/tumblr-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/extensions/share-services/tumblr/manifest.json

tools/chrome/extensions/share-services/tumblr.crx: tools/chrome/extensions/share-services/tumblr/manifest.json
./packcrx.sh tools/chrome/extensions/share-services/tumblr tools/chrome/key.pem

tools/chrome/extensions/share-services/blogger/manifest.json:
cat ./tools/chrome/extensions/share-services/blogger-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/extensions/share-services/blogger/manifest.json

tools/chrome/extensions/share-services/blogger.crx: tools/chrome/extensions/share-services/blogger/manifest.json
./packcrx.sh tools/chrome/extensions/share-services/blogger tools/chrome/key.pem

tools/chrome/extensions/share-services/digg/manifest.json:
cat ./tools/chrome/extensions/share-services/digg-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/extensions/share-services/digg/manifest.json

tools/chrome/extensions/share-services/digg.crx: tools/chrome/extensions/share-services/digg/manifest.json
./packcrx.sh tools/chrome/extensions/share-services/digg tools/chrome/key.pem

tools/chrome/extensions/share-services/hackernews/manifest.json: tools/chrome/extensions/share-services/hackernews-manifest.json
cat ./tools/chrome/extensions/share-services/hackernews-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/extensions/share-services/hackernews/manifest.json

tools/chrome/extensions/share-services/hackernews.crx: tools/chrome/extensions/share-services/blogger/manifest.json
./packcrx.sh tools/chrome/extensions/share-services/hackernews tools/chrome/key.pem

tools/chrome/extensions/share-services/gmail/manifest.json:
cat ./tools/chrome/extensions/share-services/gmail-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/extensions/share-services/gmail/manifest.json

tools/chrome/extensions/share-services/gmail.crx: tools/chrome/extensions/share-services/gmail/manifest.json
./packcrx.sh tools/chrome/extensions/share-services/gmail tools/chrome/key.pem

tools/chrome/extensions/share-services/delicious/manifest.json:
cat ./tools/chrome/extensions/share-services/delicious-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/extensions/share-services/delicious/manifest.json

tools/chrome/extensions/share-services/delicious.crx: tools/chrome/extensions/share-services/delicious/manifest.json
./packcrx.sh tools/chrome/extensions/share-services/delicious tools/chrome/key.pem

tools/chrome/extensions/share-services/linkedin/manifest.json:
cat ./tools/chrome/extensions/share-services/linkedin-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/extensions/share-services/linkedin/manifest.json

tools/chrome/extensions/share-services/linkedin.crx: tools/chrome/extensions/share-services/linkedin/manifest.json
./packcrx.sh tools/chrome/extensions/share-services/linkedin tools/chrome/key.pem

tools/chrome/extensions/share-services/reddit/manifest.json:
cat ./tools/chrome/extensions/share-services/reddit-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/extensions/share-services/reddit/manifest.json

tools/chrome/extensions/share-services/reddit.crx: tools/chrome/extensions/share-services/reddit/manifest.json
./packcrx.sh tools/chrome/extensions/share-services/reddit tools/chrome/key.pem

tools/chrome/extensions/pick-services/pickhtml/manifest.json:
cat ./tools/chrome/extensions/pick-services/pickhtml-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/extensions/pick-services/pickhtml/manifest.json

tools/chrome/extensions/pick-services/pickhtml.crx: tools/chrome/extensions/pick-services/pickhtml/manifest.json
./packcrx.sh tools/chrome/extensions/pick-services/pickhtml tools/chrome/key.pem

tools/chrome/extensions/pick-services/pickbookmark/manifest.json:
cat ./tools/chrome/extensions/pick-services/pickbookmark-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/extensions/pick-services/pickbookmark/manifest.json

tools/chrome/extensions/pick-services/pickbookmark.crx: tools/chrome/extensions/pick-services/pickbookmark/manifest.json
./packcrx.sh tools/chrome/extensions/pick-services/pickbookmark tools/chrome/key.pem

tools/chrome/extensions/pick-services/pickscreenshot/manifest.json:
cat ./tools/chrome/extensions/pick-services/pickscreenshot-manifest.json | sed 's|"version":.*|"version": "$(NOW)",|' > ./tools/chrome/extensions/pick-services/pickscreenshot/manifest.json

tools/chrome/extensions/pick-services/pickscreenshot.crx: tools/chrome/extensions/pick-services/pickscreenshot/manifest.json
./packcrx.sh tools/chrome/extensions/pick-services/pickscreenshot tools/chrome/key.pem

clean:
rm -f webintents.js
rm -f server/webintents/static/webintents.js
rm -f server/webintents/static/webintents.min.js
rm -f server/webintents/static/webintents.min.gz
rm -f server/webintents/static/cache.manifest
rm -f tools/chrome/extensions/share-services/twitter/manifest.json
rm -f tools/chrome/extensions/share-services/blogger/manifest.json
rm -f tools/chrome/extensions/share-services/linkedin/manifest.json
rm -f tools/chrome/extensions/share-services/gmail/manifest.json
rm -f tools/chrome/extensions/share-services/hackernews/manifest.json
rm -f tools/chrome/extensions/share-services/tumblr/manifest.json
rm -f tools/chrome/extensions/share-services/digg/manifest.json
rm -f tools/chrome/extensions/share-services/reddit/manifest.json
rm -f tools/chrome/extensions/share-services/delicious/manifest.json
rm -f tools/chrome/extensions/shorten-services/goo.gl/manifest.json
rm -f tools/chrome/extensions/shorten-services/bit.ly/manifest.json
rm -f tools/chrome/extensions/save-services/box/manifest.json
rm -f tools/chrome/extensions/save-services/readitlater/manifest.json
rm -f tools/chrome/extensions/save-services/instapaper/manifest.json

Something went wrong with that request. Please try again.