~ubuntu-branches/ubuntu/hoary/binutils/hoary

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-03-18 13:07:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050318130752-j4i37zgqclj53b94
Tags: 2.15-5ubuntu2
debian/rules: Call pkgstriptranslations if present (the package does not
use debhelper, thus it does not happen automatically).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# debian/rules file - for binutils (2.14.90.0.7)
 
2
# debian/rules file - for binutils (2.15)
3
3
# Based on sample debian/rules file - for GNU Hello (1.3).
4
4
# Copyright 1994,1995 by Ian Jackson.
5
5
# Copyright 1998-2004 James Troup
92
92
        -rm -f $(pwd)/test-summary
93
93
        -rm -fr $(d_bin) $(d_dev) $(d_mul) $(d_doc) $(d_hppa64)
94
94
        -rm -rf debian/patched debian/tmp debian/files debian/substvars
 
95
        -rm -f gas/doc/as.info
95
96
 
96
97
################################################################################
97
98
 
211
212
                mandir=$(pwd)/$(d_mul)/usr/share/man \
212
213
                infodir=$(pwd)/$(d_doc)/usr/share/info install
213
214
 
214
 
        : # Work around bug in 2.14.90.0.7 which caused as info and
215
 
        : # manpages to not be installed.
216
 
        make -C builddir-single/gas/doc \
217
 
                mandir=$(pwd)/$(d_bin)/usr/share/man \
218
 
                infodir=$(pwd)/$(d_doc)/usr/share/info install-info-am install-am
219
 
 
220
215
        : # copy libiberty.h ... not too keen on this, but it was requested
221
216
        cp -f include/libiberty.h $(d_bin)/usr/include
222
217
 
336
331
        dpkg-gencontrol -isp -P$(d_doc) -p$(p_doc)
337
332
        chown -R root:root $(d_doc)
338
333
        chmod -R go=rX  $(d_doc)
 
334
        [ -x /usr/bin/pkgstriptranslations ] && /usr/bin/pkgstriptranslations || true
339
335
        dpkg --build $(d_doc) ..
340
336
 
341
337
################################################################################
381
377
        ln -sf $(p_bin) $(d_hppa64)/usr/share/doc/$(p_hppa64)
382
378
endif
383
379
 
384
 
        $(install_file) $(pwd)/test-summary binutils/NEWS binutils/ChangeLog.linux \
 
380
        $(install_file) $(pwd)/test-summary binutils/NEWS  \
385
381
                        debian/README.Debian $(d_bin)/usr/share/doc/$(p_bin)/
386
382
 
387
383
        $(install_file) binutils/ChangeLog $(d_bin)/usr/share/doc/$(p_bin)/changelog
389
385
        for pkg in bfd gas gprof ld; do \
390
386
          $(install_dir) $(d_bin)/usr/share/doc/$(p_bin)/$$pkg; \
391
387
        done
392
 
        $(install_file) bfd/ChangeLog bfd/ChangeLog.linux bfd/PORTING bfd/TODO \
 
388
        $(install_file) bfd/ChangeLog bfd/PORTING bfd/TODO \
393
389
                        $(d_bin)/usr/share/doc/$(p_bin)/bfd/
394
390
        $(install_file) gas/ChangeLog gas/NEWS $(d_bin)/usr/share/doc/$(p_bin)/gas/
395
 
        $(install_file) gprof/ChangeLog gprof/ChangeLog.linux gprof/TODO gprof/TEST \
 
391
        $(install_file) gprof/ChangeLog gprof/TODO gprof/TEST \
396
392
                        $(d_bin)/usr/share/doc/$(p_bin)/gprof/
397
 
        $(install_file) ld/ChangeLog ld/ChangeLog.linux ld/TODO ld/NEWS \
 
393
        $(install_file) ld/ChangeLog ld/TODO ld/NEWS \
398
394
                        $(d_bin)/usr/share/doc/$(p_bin)/ld/
399
395
 
 
396
        : # These only exist in H. J. Lu releases not GNU ones.
 
397
        for dir in binutils bfd gas gprof ld; do \
 
398
          if [ -f $$dir/ChangeLog.linux ]; then \
 
399
            $(install_file) $(d_bin)/usr/share/doc/$(p_bin)/$$dir/; \
 
400
          fi; \
 
401
        done
 
402
 
400
403
        : # Copy bbconv.pl to the doc dir for use by interested people
401
404
        $(install_file) gprof/bbconv.pl $(d_bin)/usr/share/doc/$(p_bin)/gprof/.
402
405
 
423
426
 
424
427
        chown -R root:root $(d_bin) $(d_dev) $(d_mul)
425
428
        chmod -R go=rX  $(d_bin) $(d_dev) $(d_mul)
 
429
        [ -x /usr/bin/pkgstriptranslations ] && /usr/bin/pkgstriptranslations || true
426
430
        dpkg --build $(d_bin) ..
427
431
        dpkg --build $(d_dev) ..
428
432
        dpkg --build $(d_mul) ..