X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=debian%2Frules;h=f1921e0322aecf04929245d564d7d1e9f30f5953;hb=9bfe0b87be0926193b5baf13865cf045f0de0b0d;hp=15682ff55da8c01f67c1e04a9e4fb6a235a395e6;hpb=c3e26baef92c53af9826c2af3bfe4f3570c634bd;p=senf.git diff --git a/debian/rules b/debian/rules index 15682ff..f1921e0 100755 --- a/debian/rules +++ b/debian/rules @@ -9,11 +9,13 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 - - +debian_build=1 +export debian_build CFLAGS = -Wall -g +CONCURRENCY_LEVEL ?= 1 + ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else @@ -21,8 +23,8 @@ else endif # shared library versions, option 1 -version=2.0.5 -major=2 +#version=2.0.5 +#major=2 # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so #version=`ls src/.libs/lib*.so.* | \ # awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` @@ -35,14 +37,23 @@ configure: configure-stamp configure-stamp: dh_testdir # # Add here commands to configure the package. + rm -f Doxyfile.local SConfig local_config.hh + scons prepare +# If needed, we could create new files 'Doxyfile.local', +# 'SConfig' and/or 'local_config.hh' here. We don't remove them +# in 'clean' to allow building a source package from an +# individually configured svn working copy. (The files are ignored +# by dpkg-buildpackge because of appropriate -I arguments provided +# by 'scons deb' and 'scons debsrc' touch configure-stamp - build: build-stamp build-stamp: configure-stamp dh_testdir # # Add here commands to compile the package. - scons all final=1 + scons -j $(CONCURRENCY_LEVEL) default all_docs final=1 + scons linklint + scons fixlinks touch $@ clean: @@ -51,7 +62,7 @@ clean: rm -f build-stamp configure-stamp # # Add here commands to clean up after the build process. -scons -c all - dh_clean + dh_clean install: build dh_testdir @@ -59,9 +70,10 @@ install: build dh_clean -k dh_installdirs # # Add here commands to install the package into debian/tmp - scons install_all final=1\ + scons install_all final=1 \ PREFIX='$(destdir)/usr' \ - DOCINSTALLDIR='$$PREFIX/share/doc/libsenf-doc' + DOCINSTALLDIR='$$PREFIX/share/doc/libsenf-doc' \ + INCLUDEINSTALLDIR='$$PREFIX/include/senf' # We need to install the example sourcecode find Examples \( -name "*.hh" -o -name "*.cc" \) -printf "%P\n" | \ while read src; do \