X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=debian%2Frules;h=8f1cefcb3405a45a194eb2f581fa68c7c5085270;hb=81f84badf27b66dbadec9890646ca1193e998505;hp=a99bd645ab08c94fc4ec23e406d2a68ed5b1bde6;hpb=2ceea350c518b598d9a1b055912088d9c65c8b28;p=senf.git diff --git a/debian/rules b/debian/rules index a99bd64..8f1cefc 100755 --- a/debian/rules +++ b/debian/rules @@ -19,15 +19,11 @@ export debian_build # This has to be exported to make some magic below work. export DH_OPTIONS -#DPKG_ARCH# - CFLAGS = -Wall -g CONCURRENCY_LEVEL ?= 1 export CONCURRENCY_LEVEL -LIBTYPE ?= UNSPEC - ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else @@ -39,7 +35,7 @@ destdir=$(CURDIR)/debian/tmp configure: configure-stamp configure-stamp: dh_testdir -# # Add here commands to configure the package. +# 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', @@ -76,10 +72,13 @@ build-indep-stamp: configure-stamp scons all_docs scons linklint scons fixlinks - scons $(destdir)/usr/include $(destdir)/usr/share/doc $(SCONS_OPTIONS) \ + scons $(destdir)/usr/include $(destdir)/usr/share/doc \ PREFIX='$(destdir)/usr' \ - DOCINSTALLDIR='$$PREFIX/share/doc/libsenf-doc' \ + DOCINSTALLDIR='$$PREFIX/share/doc/libsenf-doc/html' \ INCLUDEINSTALLDIR='$$PREFIX/include/senf' +# Remove all the files not really needed from the documentation directories + find $(destdir)/usr/share/doc/libsenf-doc/html \ + -type f ! -regex '.*\.\(html\|css\|png\|php\|idx\|tag\)' | xargs rm -f # We need to install the example sourcecode find Examples \( -name "*.hh" -o -name "*.cc" \) -printf "%P\n" | \ while read src; do \