forked from ajaxorg/ace
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.papeeria
executable file
·46 lines (36 loc) · 1.63 KB
/
Makefile.papeeria
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
# Build ACE and copy some files to papeeria ace-src-noconflict directory
#
# Usage:
# make -f Makefile.papeeria build PAPEERIA_ACE=$HOME/bardsoftware/papeeria/public/javascripts/ace-src-noconflict PAPEERIA_RESOURCES=$HOME/bardsoftware/papeeria/public
all: build_ace clean_papeeria copy_files
build: build_ace clean_papeeria copy_files
build_ace:
./Makefile.dryice.js --nc
clean_papeeria: clean_papeeria_ace clean_papeeria_spellchecker
clean_papeeria_ace:
rm -f $(PAPEERIA_ACE)/ace.js
rm -f $(PAPEERIA_ACE)/ext-language_tools.js
rm -f $(PAPEERIA_ACE)/ext-searchbox.js
clean_papeeria_spellchecker:
rm -f $(PAPEERIA_ACE)/mode-markdown.js
rm -f $(PAPEERIA_ACE)/mode-latex.js
rm -f $(PAPEERIA_ACE)/mode-papeeria_latex.js
rm -f $(PAPEERIA_ACE)/mode-latex_parser.js
rm -f $(PAPEERIA_ACE)/worker-latex.js
copy_files: copy_ace_files copy_spellchecker_files
copy_ace_files:
cp ./build/src-noconflict/ace.js $(PAPEERIA_ACE)
cp ./build/src-noconflict/ext-katex.js $(PAPEERIA_ACE)
cp ./build/src-noconflict/ext-language_tools.js $(PAPEERIA_ACE)
cp ./build/src-noconflict/ext-papeeria.js $(PAPEERIA_ACE)
# cp ./lib/ace/ext/katex/katex.min.css $(PAPEERIA_RESOURCES)/stylesheets
# cp -R ./lib/ace/ext/katex/fonts $(PAPEERIA_RESOURCES)/stylesheets
cp ./build/src-noconflict/ext-searchbox.js $(PAPEERIA_ACE)
copy_spellchecker_files:
cp ./build/src-noconflict/mode-markdown.js $(PAPEERIA_ACE)
cp ./build/src-noconflict/mode-latex.js $(PAPEERIA_ACE)
cp ./build/src-noconflict/mode-papeeria_latex.js $(PAPEERIA_ACE)
cp ./build/src-noconflict/mode-latex_parser.js $(PAPEERIA_ACE)
cp ./build/src-noconflict/worker-latex.js $(PAPEERIA_ACE)
clean:
rm -rf build