File: rules

package info (click to toggle)
libdebian-installer 0.110
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,976 kB
  • ctags: 834
  • sloc: sh: 11,090; ansic: 4,965; makefile: 174
file content (41 lines) | stat: -rwxr-xr-x 1,470 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
#! /usr/bin/make -f
%:
	dh $@ --builddirectory=build --with autoreconf

DEB_HOST_ARCH_OS    := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null)
DEB_HOST_MULTIARCH  := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

#CFLAGS = -Wall -W -Werror -ggdb -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes
CFLAGS = -Wall -W -Werror -ggdb -Wmissing-declarations

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -O0
else
	CFLAGS += -Os -fomit-frame-pointer
endif

export CFLAGS

ifneq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
override_dh_auto_configure:
	dh_auto_configure -- --disable-check
endif

override_dh_auto_build:
	dh_auto_build
	$(MAKE) -C build/doc doc

override_dh_install:
	install $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libdebian-installer.so.4 $(CURDIR)/debian/libdebian-installer4-udeb/lib
	install $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libdebian-installer-extra.so.4 $(CURDIR)/debian/libdebian-installer-extra4-udeb/lib
	dh_install --sourcedir=debian/tmp

override_dh_makeshlibs:
	dh_makeshlibs -plibdebian-installer4 -V \
		--add-udeb=libdebian-installer4-udeb
	dh_makeshlibs -plibdebian-installer-extra4 -V \
		--add-udeb=libdebian-installer-extra4-udeb

override_dh_shlibdeps:
	dh_shlibdeps -N libdebian-installer-extra4 -N libdebian-installer-extra4-udeb
	dh_shlibdeps -p libdebian-installer-extra4 -p libdebian-installer-extra4-udeb -- -L$(CURDIR)/debian/libdebian-installer-extra4.shlibs.local