use dpkg make snippet to resolve parallel builds
Jonas Smedegaard
3 years ago
0 | 0 | #!/usr/bin/make -f |
1 | 1 | |
2 | 2 | include /usr/share/dpkg/pkg-info.mk |
3 | -include /usr/share/dpkg/buildopts.mk | |
3 | 4 | |
4 | 5 | # resolve if release is experimental |
5 | 6 | EXP_RELEASE = $(filter experimental% UNRELEASED,$(DEB_DISTRIBUTION)) |
6 | 7 | |
7 | 8 | DEB_VERSION_UPSTREAM_ORIG = $(firstword $(subst ~,$() ,$(DEB_VERSION_UPSTREAM))) |
8 | 9 | |
9 | ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) | |
10 | NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) | |
11 | export EMCC_CORES=$(NUMJOBS) | |
10 | ifneq (,$(DEB_BUILD_OPTION_PARALLEL)) | |
11 | export EMCC_CORES=$(DEB_BUILD_OPTION_PARALLEL) | |
12 | 12 | endif |
13 | 13 | |
14 | 14 | EM_OPTS = PATH="$(CURDIR):$$PATH" EM_CACHE="$(CURDIR)/debian/em_cache" |