~hjd/widelands/tests-poc

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Jens Beyer (Qcumber-some)
  • Date: 2014-03-10 18:44:00 UTC
  • Revision ID: qcumber-some@buerotiger.de-20140310184400-4cduspv5zkgqw345
enable parallel building taken from patch by Martin Quinson

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
# parallel building
4
 
parallel=$(shell echo $$DEB_BUILD_OPTIONS | grep parallel > /dev/null && echo -j$$(test -f /proc/cpuinfo && cat /proc/cpuinfo | (grep ^processor || echo 1) | wc -l))
5
 
 
6
3
# Hardening flags
7
4
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
8
5
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
24
21
                ../ && cat src/config.h
25
22
 
26
23
override_dh_auto_build:
27
 
        cd build-debian && make VERBOSE=1 ${parallel}
 
24
        dh_auto_build --parallel
28
25
 
29
26
override_dh_auto_install:
30
27
        cd build-debian && make install DESTDIR=`pwd`/../debian/tmp