File: rules

package info (click to toggle)
libalog 0.6.2-7.1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 784 kB
  • sloc: ada: 4,353; makefile: 99; sh: 18; ansic: 5
file content (42 lines) | stat: -rwxr-xr-x 1,176 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
#!/usr/bin/make -f

DPKG_EXPORT_BUILDFLAGS  = 1
DEB_BUILD_MAINT_OPTIONS = hardening=+all
DEB_LDFLAGS_MAINT_APPEND := -Wl,--no-undefined \
  -Wl,--no-copy-dt-needed-entries -Wl,--no-allow-shlib-undefined
include /usr/share/dpkg/buildflags.mk
include $(wildcard /usr/share/ada/packaging.mk)
# wildcard means: not during -indep builds.

export GNAT_BUILDER_FLAGS = $(GPRBUILDFLAGS)

%:
	dh $@

override_dh_auto_build-arch:
ifeq ($(DEB_HOST_ARCH),kfreebsd-i386)
	patch -p1 < debian/Don-t-store-tracebacks-in-exception-occurrences.patch
endif
	$(MAKE) VERSION=$(alog_SO_VERSION)
	$(MAKE) VERSION=

override_dh_auto_build-indep:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	$(MAKE) build-doc DIAGRAM=alog-arch-dfsg.svg
endif

override_dh_auto_install-indep:
override_dh_auto_install-arch:
	$(MAKE) install VERSION=$(alog_SO_VERSION) \
	  GPRINSTALLFLAGS='$(call shared_GPRINSTALLFLAGS,alog)'
	$(MAKE) install VERSION= \
	  GPRINSTALLFLAGS='$(static_GPRINSTALLFLAGS)'

# work-around #1096181 in ahven.
ifneq (,$(filter $(DEB_HOST_ARCH),armel armhf))
  override_dh_auto_test-arch: export ADAFLAGS += -O0
endif

override_dh_auto_test-indep:
override_dh_auto_test-arch:
	$(MAKE) tests