forked from mozilla/dxr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
49 lines (33 loc) · 1.12 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
PLUGINS ?= clang pygmentize
BUILD_PLUGINS = $(PLUGINS:%=build-plugin-%)
CHECK_PLUGINS = $(PLUGINS:%=check-plugin-%)
CLEAN_PLUGINS = $(PLUGINS:%=clean-plugin-%)
all: build-plugin-clang build-plugin-pygmentize trilite
python3 setup.py build
install: all
python3 setup.py install --prefix=${PREFIX} --single-version-externally-managed --record=/dev/null
cp -p trilite/libtrilite.so $(PREFIX)/lib
cp -p trilite/re2/obj/libre2.a ${PREFIX}/lib
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