~udienz/+junk/debootstrap-blankon

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Andy Apdhani
  • Date: 2007-09-29 13:24:53 UTC
  • Revision ID: imtheface@ubuntu.com-20070929132453-r0ir93lt4fk29u7m
Impor awal

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
# Uncomment this to turn on verbose mode.
 
4
#export DH_VERBOSE=1
 
5
 
 
6
configure:
 
7
        dh_testdir
 
8
 
 
9
clean:
 
10
        dh_testdir
 
11
 
 
12
        -$(MAKE) clean
 
13
 
 
14
        dh_clean
 
15
 
 
16
build: configure
 
17
#        need to be root to make devices, so build is done in install target
 
18
 
 
19
real-build: build
 
20
        dh_testdir
 
21
        dh_testroot
 
22
 
 
23
        $(MAKE) all
 
24
 
 
25
install: real-build
 
26
        dh_testdir
 
27
        dh_testroot
 
28
 
 
29
        dh_clean -k
 
30
        dh_installdirs
 
31
 
 
32
#        install the package into debian/debootstrap
 
33
        $(MAKE) install-allarch DESTDIR=$(CURDIR)/debian/debootstrap
 
34
        $(MAKE) install-arch    DESTDIR=$(CURDIR)/debian/debootstrap-udeb
 
35
 
 
36
binary-indep: install
 
37
# We have nothing to do by default.
 
38
 
 
39
ARCHES="i386"
 
40
SUITE="testing"
 
41
VERSION=$(SUITE)
 
42
MIRROR="http://ftp.debian.org/debian"
 
43
 
 
44
binary-basedebs:
 
45
        dh_testdir
 
46
        dh_testroot
 
47
 
 
48
        $(MAKE) pkgdetails
 
49
 
 
50
        ln -s . scripts
 
51
        for a in $(ARCHES); do \
 
52
            rm -rf chroot-dir; \
 
53
            mkdir -p chroot-dir; \
 
54
            DEBOOTSTRAP_DIR=. ./debootstrap --arch $$a --download-only $(SUITE) chroot-dir $(MIRROR); \
 
55
            (cd chroot-dir && tar cf ../../basedebs_$(VERSION)_$$a.tar *); \
 
56
            rm -rf chroot-dir; \
 
57
        done
 
58
        rm -f scripts
 
59
 
 
60
binary-indep: install
 
61
        dh_testdir
 
62
        dh_testroot
 
63
        dh_installdocs -i
 
64
        dh_installman -i debootstrap.8
 
65
        dh_installchangelogs -i
 
66
        dh_link -i
 
67
        dh_compress -i
 
68
        dh_fixperms -i
 
69
        dh_installdeb -i
 
70
        dh_shlibdeps -i
 
71
        dh_gencontrol -i
 
72
        dh_md5sums -i
 
73
        dh_builddeb -i
 
74
 
 
75
binary-arch: install
 
76
        dh_testdir
 
77
        dh_testroot
 
78
        -rm -rf debian/debootstrap-udeb/usr/share \
 
79
                debian/debootstrap-udeb/usr/lib/debootstrap/scripts/potato \
 
80
                debian/debootstrap-udeb/usr/lib/debootstrap/scripts/woody \
 
81
                debian/debootstrap-udeb/usr/lib/debootstrap/scripts/sarge \
 
82
                debian/debootstrap-udeb/usr/lib/debootstrap/scripts/warty \
 
83
                debian/debootstrap-udeb/usr/lib/debootstrap/scripts/hoary \
 
84
                debian/debootstrap-udeb/usr/lib/debootstrap/scripts/breezy \
 
85
                debian/debootstrap-udeb/usr/lib/debootstrap/scripts/dapper \
 
86
                debian/debootstrap-udeb/usr/lib/debootstrap/scripts/edgy \
 
87
                debian/debootstrap-udeb/usr/lib/debootstrap/scripts/feisty \
 
88
                debian/debootstrap-udeb/usr/lib/debootstrap/scripts/*.buildd \
 
89
                debian/debootstrap-udeb/usr/lib/debootstrap/scripts/*.fakechroot
 
90
        dh_strip -s
 
91
        dh_compress -s
 
92
        dh_fixperms -s
 
93
        dh_installdeb -s
 
94
        dh_shlibdeps -s
 
95
        dh_gencontrol -s
 
96
        dh_builddeb -s
 
97
 
 
98
binary: binary-indep binary-arch
 
99
.PHONY: build real-build clean binary-indep binary-arch binary install configure binary-basedebs