X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=debian%2Frules;h=35d00fe56d3b90872ac4b0cc84fa1701dc89fb2f;hb=17dc235865558f1d14c18340f3d6c3bb914af2cf;hp=d1ec8159e94953606bd694d5de08dc8a3925b1e5;hpb=6575f33603bf50cbdf01810b4be29e04ea99bf2d;p=chiark-utils.git diff --git a/debian/rules b/debian/rules index d1ec815..35d00fe 100755 --- a/debian/rules +++ b/debian/rules @@ -13,9 +13,16 @@ cwd= $(shell pwd) d= $(cwd)/debian t= $d/tmp +makebuildargs := OPTIMISE= DEBUG= \ + CMDLINE_CFLAGS="$(shell dpkg-buildflags --get CFLAGS)" \ + CMDLINE_CPPFLAGS="$(shell dpkg-buildflags --get CPPFLAGS)" \ + CMDLINE_LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS)" + build: $(checkdir) - set -e; for s in $(subdirs_build_arch); do $(MAKE) -C $$s all; done + set -e; for s in $(subdirs_build_arch); do \ + $(MAKE) -C $$s all $(makebuildargs); \ + done touch build build-indep: build @@ -84,8 +91,7 @@ binary-prep: mv really.8 $t/chiark-really/usr/share/man/man8/ rm $t/chiark-utils-bin/usr/sbin/trivsoundd \ $t/chiark-utils-bin/usr/share/man/man8/trivsoundd.8 - rmdir $t/chiark-utils-bin/usr/sbin \ - $t/chiark-utils-bin/usr/share/man/man8 + rmdir $t/chiark-utils-bin/usr/sbin # gzip -9f $t/*/usr/share/man/man*/*