-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (31 loc) · 843 Bytes
/
Makefile
File metadata and controls
39 lines (31 loc) · 843 Bytes
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
PYTHON=python
PDIR = pack
scripts = \
highlight.pack.js\
inject.js\
styles.js\
background.html\
options.html\
test.html\
icon.png
pack:
install -d $(PDIR)
fgrep -v 'file://' manifest.json >$(PDIR)/manifest.json
install -m644 $(scripts) $(PDIR)
install -d $(PDIR)/styles
install -m644 styles/*.css $(PDIR)/styles
zip -r $(PDIR).zip $(PDIR)
rm -rf $(PDIR)
highlight.js:
bzr branch http://bazaar.launchpad.net/~isagalaev/+junk/highlight highlight.js
build:
$(PYTHON) highlight.js/tools/pack.py
$(PYTHON) highlight.js/tools/build.py
ln -sf highlight.js/src/highlight.pack.js
styles:
rm -rf styles && mkdir styles
for style in `ls highlight.js/src/styles/*.css`; do\
cat $$style | python add_prefix.py > styles/`basename $$style`;\
done;
cat native.css | python add_prefix.py > styles/native.css
.PHONY: pack styles