allpy
annotate debian/rules @ 599:56d62d405021
pair_cores_all.py: close openned files to avoid error
error "Too many openned files" occured in child processes
multiprocessing seems to use old process when new python process
is created to avoid increasing of process number. Therefore
files openned in childred are not closed automatically
author | boris (kodomo) <bnagaev@gmail.com> |
---|---|
date | Sun, 03 Apr 2011 17:05:32 +0400 |
parents | bae30e5037b1 |
children | cc1ed3a62673 |
rev | line source |
---|---|
me@198 | 1 #!/usr/bin/make -f |
dendik@486 | 2 |
me@198 | 3 DEB_AUTO_UPDATE_DEBIAN_CONTROL = yes |
me@198 | 4 DEB_PYTHON_SYSTEM = pysupport |
dendik@486 | 5 DEB_COMPRESS_EXCLUDE = .py |
dendik@486 | 6 DEB_PYTHON_MODULE_PACKAGES = $(filter-out blocks3d-wt, $(DEB_PACKAGES)) |
dendik@486 | 7 |
me@198 | 8 include /usr/share/cdbs/1/rules/debhelper.mk |
me@198 | 9 include /usr/share/cdbs/1/class/python-distutils.mk |
me@198 | 10 |
dendik@486 | 11 build/python-allpy:: |
dendik@486 | 12 make -C docs html |
dendik@486 | 13 |
dendik@486 | 14 # Manually build blocks3d-wt to avoid build-dependency on qmake |
dendik@486 | 15 b3dwt = blocks3d/wt |
dendik@486 | 16 b3dwt_cpp = $(wildcard $(b3dwt)/*.C) |
dendik@486 | 17 b3dwt_o = $(b3dwt_cpp:.C=.o) |
dendik@486 | 18 b3dwt_exe = $(b3dwt)/blocks3d-wt |
dendik@486 | 19 |
dendik@486 | 20 -include debian/.dep |
dendik@486 | 21 |
dendik@486 | 22 build/blocks3d-wt:: $(b3dwt_exe) debian/.dep |
dendik@486 | 23 |
dendik@486 | 24 $(b3dwt_exe): $(b3dwt_o) |
dendik@486 | 25 $(CC) -o $@ $^ -lwt -lwtfcgi -lboost_signals -O3 |
dendik@486 | 26 |
dendik@486 | 27 $(b3wdt)/%.o: |
dendik@486 | 28 $(CC) -o $@ $< -O3 |
dendik@486 | 29 |
dendik@486 | 30 clean:: |
dendik@486 | 31 rm -f $(b3dwt_o) |
dendik@486 | 32 |
dendik@486 | 33 debian/.dep: $(b3dwt_cpp) |
dendik@486 | 34 $(CC) $^ -MM > $@ |