source: debian/rules @ 4819d75

develop 4.0.5
Last change on this file since 4819d75 was 4819d75, checked in by Shane Alcock <salcock@…>, 2 years ago

Merge branch 'rc-4.0.5'

Conflicts:

debian/control

  • Property mode set to 100755
File size: 2.1 KB
Line 
1#!/usr/bin/make -f
2
3# Uncomment this to turn on verbose mode.
4#export DH_VERBOSE=1
5
6# Enable all hardening features, since traces are untrusted input.
7export DEB_BUILD_MAINT_OPTIONS = hardening=+all
8DPKG_EXPORT_BUILDFLAGS = 1
9include /usr/share/dpkg/buildflags.mk
10
11# These are used for cross-compiling and for saving the configure script
12# from having to guess our platform (since we know it already)
13DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
14DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
15CONFFLAGS =
16ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
17        CONFFLAGS += --build $(DEB_HOST_GNU_TYPE)
18else
19        CONFFLAGS += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
20endif
21
22
23configure:
24
25configure-stamp: configure
26        dh_testdir
27
28        dh_autoreconf
29
30        ./configure $(CONFFLAGS) \
31                   --prefix=/usr \
32                   --with-dpdk=yes \
33                   --mandir=\$${prefix}/share/man \
34                   --infodir=\$${prefix}/share/info
35
36        touch configure-stamp
37
38build: build-arch build-indep
39build-arch: build-stamp
40build-indep: build-stamp
41build-stamp: configure-stamp
42        dh_testdir
43
44        # Add here commands to compile the package.
45        $(MAKE)
46
47        touch build-stamp
48
49clean:
50        dh_testdir
51        dh_testroot
52        rm -f build-stamp configure-stamp
53
54        [ ! -f Makefile ] || $(MAKE) clean
55        [ ! -f Makefile ] || $(MAKE) distclean
56        rm -rf docs/doxygen
57
58        dh_autoreconf_clean
59        dh_clean
60
61install: build
62        dh_testdir
63        dh_testroot
64        dh_clean -k
65        dh_installdirs
66
67        # Add here commands to install the package into debian/tmp
68        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
69
70# Build architecture-independent files here.
71binary-indep: build install
72# We have nothing to do by default.
73
74# Build architecture-dependent files here.
75binary-arch: build install
76        dh_testdir
77        dh_testroot
78        #dh_installchangelogs ChangeLog
79        dh_installchangelogs
80        dh_installdocs
81        dh_installexamples
82        dh_installman
83        dh_install --sourcedir=debian/tmp
84        dh_link
85        dh_strip
86        dh_compress
87        dh_fixperms
88        dh_makeshlibs
89        dh_installdeb
90        dh_shlibdeps
91        dh_gencontrol
92        dh_md5sums
93        dh_builddeb
94
95binary: binary-indep binary-arch
96.PHONY: build clean binary-indep binary-arch binary install
Note: See TracBrowser for help on using the repository browser.