Allow parallel building
Aron Xu
8 years ago
7 | 7 | LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed |
8 | 8 | |
9 | 9 | DEB_BUILD_MULTIARCH :=$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH) |
10 | ||
11 | NUMJOBS=1 | |
12 | ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) | |
13 | NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) | |
14 | endif | |
10 | 15 | |
11 | 16 | # clear XDG_CONFIG_DIRS for qtchooser |
12 | 17 | unexport XDG_CONFIG_DIRS |
26 | 31 | SOURCE_VERSION := $(call vafilt,$(CHANGELOG_VARS),Version) |
27 | 32 | |
28 | 33 | %: |
29 | dh $@ | |
34 | dh $@ --parallel | |
30 | 35 | |
31 | 36 | override_dh_auto_configure: |
32 | 37 | GYP_DEFINES="use_libprotobuf=1" python build_mozc.py gyp \ |
34 | 39 | --build_base=$(BUILD_DIR) |
35 | 40 | |
36 | 41 | override_dh_auto_build: |
37 | V=1 python build_mozc.py build $(TARGETS) -c Release --jobs=1 | |
42 | V=1 python build_mozc.py build $(TARGETS) -c Release --jobs=$(NUMJOBS) | |
38 | 43 | |
39 | 44 | override_dh_auto_clean: |
40 | 45 | python build_mozc.py clean |