-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
40 lines (29 loc) · 811 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
33
34
35
36
37
38
39
40
BUILD = build
MMD_DIR = deps/MultiMarkdown-4
MMD_OBJECTS = $(MMD_DIR)/multimarkdown.o
TARGET = $(BUILD)/Release/mmd.node
TARGET += $(BUILD)/Debug/mmd.node
NODE_GYP = ./node_modules/.bin/node-gyp
all: clean $(TARGET)
preinstall: $(TARGET)
multimarkdown: $(MMD_OBJECTS)
$(MMD_OBJECTS):
./bin/compile-multimarkdown.sh
$(TARGET): $(BUILD) $(MMD_OBJECTS) $(NODE_GYP)
./node_modules/.bin/node-gyp configure --debug
./node_modules/.bin/node-gyp build --debug
./node_modules/.bin/node-gyp configure
./node_modules/.bin/node-gyp build
$(BUILD):
@mkdir -p $@
$(NODE_GYP):
npm install nan
npm install node-gyp
clean:
rm -rf build
rm -rf deps
node_modules: package.json
npm install
test: $(TARGET) node_modules
./node_modules/mocha/bin/mocha
.PHONY: test clean preinstall debug