Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 DPKG_EXPORT_BUILDFLAGS = 1
7 include /usr/share/dpkg/default.mk
8
9 %:
10 dh $@ --parallel --with autoreconf
11
12 override_dh_auto_configure:
13 dh_auto_configure --builddir build-deb -- \
14 --with-dpkg-arch=$(DEB_HOST_ARCH) \
15 --with-frontend=standalone
16 dh_auto_configure --builddir build-static -- \
17 --with-dpkg-arch=$(DEB_HOST_ARCH) \
18 --enable-static \
19 --with-configdir=\$${datadir}/cdebootstrap-static \
20 --with-frontend=standalone
21 dh_auto_configure --builddir build-tar -- \
22 --with-dpkg-arch=$(DEB_HOST_ARCH) \
23 --enable-static \
24 --with-configdir=BINARY/cdebootstrap-support \
25 --with-frontend=standalone
26
27 override_dh_auto_build:
28 dh_auto_build --builddir build-deb
29 dh_auto_build --builddir build-static
30 dh_auto_build --builddir build-tar
31
32 override_dh_auto_install:
33 dh_auto_install --builddir build-deb --destdir debian/cdebootstrap
34
35 dh_auto_install --builddir build-static --destdir debian/cdebootstrap-static
36 mv debian/cdebootstrap-static/usr/bin/cdebootstrap debian/cdebootstrap-static/usr/bin/cdebootstrap-static
37 mv debian/cdebootstrap-static/usr/share/man/man1/cdebootstrap.1 debian/cdebootstrap-static/usr/share/man/man1/cdebootstrap-static.1
38
39 dh_auto_install --builddir build-tar --destdir debian/tmp
40 strip --remove-section=.comment --remove-section=.note debian/tmp/usr/bin/cdebootstrap
41 tar -C debian/tmp/usr/bin --mtime=@$(SOURCE_DATE_EPOCH) -cf debian/tmp/cdebootstrap_$(DEB_VERSION)_$(DEB_HOST_ARCH).tar .
42 mkdir -p debian/cdebootstrap-static/usr/lib/cdebootstrap
43 cp debian/tmp/cdebootstrap_$(DEB_VERSION)_$(DEB_HOST_ARCH).tar debian/cdebootstrap-static/usr/lib/cdebootstrap
44
45 ( echo -n "misc:Built-Using="; dpkg-query -f='$${source:Package} (= $${source:Version}), ' -W libc6-dev libdebian-installer4-dev libdebconfclient0-dev libbz2-dev liblzma-dev zlib1g-dev; echo ) >> debian/cdebootstrap-static.substvars
46
47 override_dh_auto_clean:
48 -rm -rf build-*