forked from mozilla/dxr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
43 lines (28 loc) · 874 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
41
42
43
PLUGINS ?= clang pygmentize
BUILD_PLUGINS = $(PLUGINS:%=build-plugin-%)
CHECK_PLUGINS = $(PLUGINS:%=check-plugin-%)
CLEAN_PLUGINS = $(PLUGINS:%=clean-plugin-%)
all: build
test: build
LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:`pwd`/trilite python2 setup.py test
build: $(BUILD_PLUGINS) trilite templates
check: $(CHECK_PLUGINS) trilite
clean: $(CLEAN_PLUGINS) trilite-clean
node:
npm install
templates: node
node_modules/.bin/grunt precompile
trilite:
$(MAKE) -C trilite/ release
trilite-clean:
$(MAKE) -C trilite/ clean
$(BUILD_PLUGINS):
$(MAKE) -C $(@:build-plugin-%=dxr/plugins/%) build
$(CHECK_PLUGINS):
$(MAKE) -C $(@:check-plugin-%=dxr/plugins/%) check
$(CLEAN_PLUGINS):
$(MAKE) -C $(@:clean-plugin-%=dxr/plugins/%) clean
.PHONY: $(BUILD_PLUGINS)
.PHONY: $(CHECK_PLUGINS)
.PHONY: $(CLEAN_PLUGINS)
.PHONY: all build check clean test trilite trilite-clean