Changeset 6686 for debian/rules

Show
Ignore:
Timestamp:
09/04/05 15:51:05 (3 years ago)
Author:
rafl
Message:

Debian Package:
* Added license of examples/hop6 to debian/copyright.
* Install some more manpages into the pugs package.
* Added ability to build optimized or unoptimized base on DEB_BUILD_OPTIONS.
* Fixed syntax error when running tests.
* Run smome-all by default when running tests.
* Added ability to change the tests being run with the TESTS environment

variable.

* Added ability to send the generated smoke htmls to the smokeserv. This can be

disabled by setting DONT_SEND_SMOKE to something true.

* Install lintian overrides for pugs-modules to prevent "unusual interpreter"

warnings.

* Don't generate a pugs.1 manpage. Link to pugs::run instead.
* Remove extra license file for hop6.
* Remove empty files in the pugs-doc package.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • debian/rules

    r6598 r6686  
    11#!/usr/bin/make -f 
    22 
    3 CFLAGS = -Wall -g 
     3ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) 
     4        CFLAGS = optimized 
     5else 
     6        CFLAGS = unoptimized 
     7endif 
    48 
    5 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) 
    6         CFLAGS += -O0 
    7 else 
    8         CFLAGS += -O2 
    9 endif 
     9TESTS='smoke-all' 
    1010 
    1111configure: configure-stamp 
     
    1919build-arch: build-arch-stamp 
    2020build-arch-stamp: configure-stamp  
    21         $(MAKE) optimized 
    22         -test ($$SKIP_TESTS) || $(MAKE) test 
    23         pod2man --section=1 --release="Debian Project" --center="Debian GNU/Linux manual" $(CURDIR)/lib/pugs/run.pod $(CURDIR)/debian/pugs.1 
     21        $(MAKE) $(CFLAGS) 
     22        -test $$SKIP_TESTS || $(MAKE) $(TESTS) 
     23        -if [ ! $$DONT_SEND_SMOKE ]; then \ 
     24                for html in $(CURDIR)/*smoke.html; do \ 
     25                        ./util/smokeserv/smokeserv-client.pl $$html; \ 
     26                done; \ 
     27        fi 
    2428        pod2man --section=1 --release="Debian Project" --center="Debian GNU/Linux manual" $(CURDIR)/script/pugscc $(CURDIR)/debian/pugscc.1 
    2529        touch build-arch-stamp 
     
    4145        dh_testroot 
    4246        dh_installdirs 
    43         dh_install -i --sourcedir=$(CURDIR)/debian/tmp 
     47        dh_install -i --sourcedir=$(CURDIR)/debian/tmp --list-missing 
    4448        cp -r $(CURDIR)/docs/* $(CURDIR)/debian/pugs-doc/usr/share/doc/pugs-doc/ 
     49        cp $(CURDIR)/debian/pugs-modules.lintian-overrides $(CURDIR)/debian/pugs-modules/usr/share/lintian/overrides/pugs-modules 
    4550        rm -f $(CURDIR)/debian/pugs-doc/usr/share/doc/pugs-doc/SEEALSO 
    46         find $(CURDIR)/debian/pugs-doc/ -type f -size 0 -exec rm -f {} \; 
    4751 
    4852install-arch: 
     
    5256        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp 
    5357        cp util/perl6.vim $(CURDIR)/debian/pugs/usr/share/vim/vim63/syntax/ 
    54         dh_install -s --sourcedir=$(CURDIR)/debian/tmp 
     58        dh_install -s --sourcedir=$(CURDIR)/debian/tmp --list-missing 
    5559        rm -f $(CURDIR)/debian/pugs/usr/lib/perl6/5.8/CORE/pugs/gen_prelude \ 
    5660        $(CURDIR)/debian/pugs/usr/lib/perl6/5.8/CORE/pugs/Pugs/Rule/LICENSE \ 
     
    6670        dh_installdocs -i 
    6771        dh_installexamples -i examples/* 
     72        rm -f $(CURDIR)/debian/pugs-doc/usr/share/doc/pugs-doc/examples/hop6/LICENSE.txt 
     73        find $(CURDIR)/debian/pugs-doc/ -type f -size 0 -exec rm -f {} \; 
    6874        dh_installman -i 
    6975        dh_link -i 
     
    8490        dh_installchangelogs -a ChangeLog 
    8591        dh_installdocs -a 
    86         dh_installman -a debian/pugs.1 debian/pugscc.1 
     92        dh_installman -a debian/pugscc.1 
    8793        dh_link -a 
    8894        dh_compress  -a