-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile
59 lines (40 loc) · 2.28 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
ALL_TARGETS = js/ol.js js/fontselector.js js/editquiz.js js/handle_legend.js styles/ol.css styles/ol_zh.css
all: $(ALL_TARGETS) allugly
js/ol.js: ts/ol.ts ts/answer.ts ts/charset.ts ts/componentwithyesno.ts ts/configuration.ts ts/dictionary.ts \
ts/sentencegrammar.ts ts/grammarselectionbox.ts ts/displaymonadobject.ts \
ts/localization.ts ts/monadobject.ts ts/panelquestion.ts \
ts/statistics.ts ts/stringwithsort.ts ts/util.ts ts/quiz.ts ts/quizdata.ts ts/resizer.ts \
ts/localization_general.ts
tsc --lib es2015,dom --removeComments --noImplicitAny --outFile $@ $<
js/editquiz.js: ts/editquiz.ts ts/configuration.ts ts/localization.ts \
ts/paneltemplmql.ts ts/paneltemplsentenceselector.ts ts/paneltemplquizobjectselector.ts \
ts/paneltemplquizfeatures.ts ts/sentencegrammar.ts \
ts/stringwithsort.ts ts/sortingcheckbox.ts ts/util.ts ts/verbclasspanel.ts ts/resizer.ts \
ts/charset.ts ts/localization_general.ts
tsc --lib es2015,dom --removeComments --noImplicitAny --outFile $@ $<
js/fontselector.js: ts/fontselector.ts ts/fontdetect.d.ts ts/util.ts ts/localization_general.ts
tsc --lib es2015,dom --removeComments --noImplicitAny --outFile $@ $<
js/handle_legend.js: ts/handle_legend.ts ts/util.ts ts/resizer.ts
tsc --lib es2015,dom --removeComments --noImplicitAny --outFile $@ $<
styles/ol.css: styles/ol.less
lessc --global-var='chinese=false' $< > $@
styles/ol_zh.css: styles/ol.less
lessc --global-var='chinese=true' $< > $@
clean: cleanugly
rm -f $(ALL_TARGETS)
ALL_UGLY = db/ETCBC4.db.json db/ETCBC4-translit.db.json db/nestle1904.db.json db/jvulgate.db.json \
db/ETCBC4.typeinfo.json db/nestle1904.typeinfo.json db/jvulgate.typeinfo.json
PHP = php
allugly: $(ALL_UGLY)
db/%.json: db/%.pretty.json
$(PHP) json_pretty_print.php -u $< > $@
cleanugly:
rm -f $(ALL_UGLY)
#TAGS:
# find CodeIgniter myapp -name '*.php' -o -name '*.inc' | etags -l php -
docs:
cd myapp; doxygen
TAGS: FORCE
find myapp -name '*.php' | etags --lang=php --regex="/[ \t]*\(static\)?[ \t]*\(public\|private\)?[ \t]*\(static\)?[ \t]*function[ \t]+\([^(]+\)(/\4/" -
etags -o TSTAGS --regex="/[ \t]*\(public\|private\)[ \t]*\(static\)?[ \t]+\([^(]+\)(/\3/" --regex="/[ \t]*function[ \t]+\([^(]+\)(/\1/" --regex="/[ \t]*\(abstract[ \t]*\)?\(class\|interface\)[ \t]+\([a-zA-Z0-9_]+\)/\3/" ts/*.ts
FORCE: