~ubuntu-branches/ubuntu/precise/libtext-autoformat-perl/precise

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Niko Tyni
  • Date: 2006-02-02 23:12:50 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060202231250-f0iy2es39u8odwae
Tags: 1.13-1
* New upstream release
* Add myself to Uploaders.
* Move debhelper from Build-Depends-Indep to Build-Depends,
  as per policy.
* Upgrade to debhelper compatibility level 5.
* Add ${misc:Depends} to Depends, as recommended by debhelper.
* Upgrade to Standards-Version 3.6.2. No changes needed.
* Install the new sample config files config.{emacs,vim} as examples.
* Add debian/watch.
* Revamp package installation in debian/rules; don't use dh_install anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
#export DH_VERBOSE=1
9
9
 
10
10
## ----------------------------------------------------------------------
11
 
TMP_DIR         = debian/tmp
 
11
PACKAGE=$(shell dh_listpackages)
 
12
TMP     =$(CURDIR)/debian/$(PACKAGE)
12
13
 
13
14
## ----------------------------------------------------------------------
14
15
## targets
34
35
                dh_testroot
35
36
                dh_clean -k
36
37
                dh_installdirs
37
 
                $(MAKE) install PREFIX=$(PWD)/$(TMP_DIR)/usr
 
38
                $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
 
39
                #As this is a architecture independent package, we are not supposed to install
 
40
                #stuff to /usr/lib. MakeMaker creates the dirs, we delete them from the deb:
 
41
                rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
38
42
                touch install-stamp
39
43
 
40
44
binary-indep:   build install
41
45
                dh_testdir
42
46
                dh_testroot
43
 
                dh_install --sourcedir=$(TMP_DIR)
44
47
                dh_installdocs
45
48
                dh_installexamples
46
49
                dh_installchangelogs Changes
47
50
                dh_compress
48
51
                dh_fixperms
 
52
                chmod 644 $(TMP)/usr/share/doc/$(PACKAGE)/examples/*
49
53
                dh_installdeb
50
54
                dh_perl
51
55
                dh_gencontrol