~ubuntu-branches/ubuntu/precise/appconfig/precise

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Stefan Hornburg (Racke)
  • Date: 2011-09-12 08:40:54 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: package-import@ubuntu.com-20110912084054-vutwtinoua3z3dzv
Tags: 1.66-1
* New upstream releases (Closes: #585632)
* Update Standards-Version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
# Uncomment this to turn on verbose mode.
4
 
#export DH_VERBOSE=1
5
 
 
6
 
ifndef PERL
7
 
        PERL = /usr/bin/perl
8
 
endif
9
 
 
10
 
TMP =`pwd`/debian/tmp
11
 
archlib =`$(PERL) -MConfig -e 'print $$Config{installarchlib}'`
12
 
config =INSTALLDIRS=perl INSTALLMAN1DIR=$(TMP)/usr/share/man/man1 INSTALLMAN3DIR=$(TMP)/usr/share/man/man3 INSTALLPRIVLIB=$(TMP)/usr/lib/perl5 INSTALLARCHLIB=$(TMP)$(archlib) INSTALLBIN=$(TMP)/usr/bin INSTALLSCRIPT=$(TMP)/usr/bin
13
 
 
14
 
build: build-stamp
15
 
build-stamp:
16
 
        dh_testdir
17
 
 
18
 
 
19
 
# Add here commands to compile the package.
20
 
        $(PERL) Makefile.PL INSTALLDIRS=vendor
21
 
# For potato builds
22
 
        if ! grep ^install_vendor Makefile >/dev/null; then \
23
 
                $(MAKE) clean; \
24
 
                $(PERL) Makefile.PL $(config); \
25
 
        fi
26
 
        $(MAKE) OPTIMIZE="-O2 -g -Wall"
27
 
 
28
 
        touch build-stamp
29
 
 
30
 
clean:
31
 
        dh_testdir
32
 
        dh_testroot
33
 
        rm -f build-stamp
34
 
 
35
 
        # Add here commands to clean up after the build process.
36
 
        dh_clean
37
 
 
38
 
install: build
39
 
        dh_testdir
40
 
        dh_testroot
41
 
        dh_clean -k
42
 
        dh_installdirs
43
 
 
44
 
        # Add here commands to install the package into debian/tmp.
45
 
        if grep ^install_vendor Makefile; then \
46
 
                $(MAKE) install PREFIX=$(PWD)/debian/tmp/usr; \
47
 
        else \
48
 
                $(MAKE) pure_install DESTDIR=$(PWD)/debian/tmp; \
49
 
        fi
50
 
        touch install-stamp
51
 
 
52
 
# Build architecture-independent files here.
53
 
binary-indep: build install
54
 
        dh_testdir
55
 
        dh_testroot
56
 
        dh_installdocs README TODO
57
 
#       dh_installexamples examples/*
58
 
        dh_installmenu
59
 
        dh_installcron
60
 
        dh_installmanpages
61
 
        dh_installinfo
62
 
        dh_installchangelogs Changes
63
 
        dh_link
64
 
        dh_strip
65
 
        dh_compress
66
 
        dh_fixperms
67
 
        dh_makeshlibs
68
 
        dh_installdeb
69
 
        dh_perl
70
 
        dh_shlibdeps
71
 
        dh_gencontrol
72
 
        dh_md5sums
73
 
        dh_builddeb
74
 
 
75
 
# Build architecture-dependent files here.
76
 
binary-arch: build install
77
 
 
78
 
binary: binary-indep binary-arch
79
 
.PHONY: build clean binary-indep binary-arch binary install
 
3
%:
 
4
        dh $@