forked from mozilla/doctorjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (26 loc) · 963 Bytes
/
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
PREFIX=/usr/local
INSTALL=install
NODE=node
BIN_SRC=$(addprefix bin/,jsctags.js)
LIB_SRC=$(addprefix lib/jsctags/,getopt.js log.js paperboy.js traits.js \
underscore.js)
LIB_CTAGS_SRC=$(addprefix lib/jsctags/ctags/,index.js interp.js nativefn.js \
reader.js writer.js)
LIB_NARCISSUS_SRC=$(addprefix lib/jsctags/narcissus/,index.js jscfa.js \
jsdefs.js jslex.js jsparse.js)
install:
$(INSTALL) -d $(PREFIX)/bin
$(INSTALL) $(BIN_SRC) $(BIN_SRC:%.js=$(PREFIX)/%)
$(INSTALL) -d $(PREFIX)/lib/jsctags
$(INSTALL) $(LIB_SRC) $(PREFIX)/lib/jsctags
$(INSTALL) -d $(PREFIX)/lib/jsctags/ctags
$(INSTALL) $(LIB_CTAGS_SRC) $(PREFIX)/lib/jsctags/ctags
$(INSTALL) -d $(PREFIX)/lib/jsctags/narcissus
$(INSTALL) $(LIB_NARCISSUS_SRC) $(PREFIX)/lib/jsctags/narcissus
uninstall:
rm -rf $(BIN_SRC:%.js=$(PREFIX)/%) $(PREFIX)/lib/jsctags
serve:
$(NODE) serve.js
tags:
$(NODE) bin/jsctags.js -Llib/jsctags js lib/jsctags
.PHONY: all install uninstall serve tags