File: rules

package info (click to toggle)
tcpflow 1.4.5%2Brepack1-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,004 kB
  • ctags: 5,121
  • sloc: cpp: 17,933; python: 7,736; sh: 1,315; xml: 1,100; ansic: 355; makefile: 346
file content (47 lines) | stat: -rwxr-xr-x 1,248 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/make -f

%:
	dh $@

export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

BUILDDIR     := $(CURDIR)/debian/build
BUILDDIR_NOX := $(CURDIR)/debian/build-nox

conf_opts :=						\
	--build=$(DEB_BUILD_GNU_TYPE)			\
	--prefix=/usr					\
	--includedir=/usr/include			\
	--mandir=/usr/share/man				\
	--infodir=/usr/share/info			\
	--sysconfdir=/etc				\
	--localstatedir=/var				\
	--libdir=/usr/lib/$(DEB_HOST_GNU_TYPE)		\
	--libexecdir=/usr/lib/$(DEB_HOST_GNU_TYPE)	\
	--disable-maintainer-mode			\
	--disable-dependency-tracking


override_dh_auto_configure:
	autoreconf -f -i
	mkdir -p $(BUILDDIR)
	cd $(BUILDDIR); ../../configure $(conf_opts)
	mkdir -p $(BUILDDIR_NOX)
	cd $(BUILDDIR_NOX);  ./../../configure $(conf_opts) --enable-cairo=false

override_dh_auto_build:
	dh_auto_build -a -- -C $(BUILDDIR_NOX)/src
	dh_auto_build -a -- -C $(BUILDDIR)

override_dh_auto_clean:
	dh_auto_clean
	rm -rf $(BUILDDIR) $(BUILDDIR_NOX) \
		config.log \
		config.hin \
		configure \
		src/Makefile.in

override_dh_auto_install:
	$(MAKE) -C $(BUILDDIR) install DESTDIR=$(BUILDDIR).inst
	$(MAKE) -C $(BUILDDIR_NOX) install DESTDIR=$(BUILDDIR_NOX).inst