File: rules

package info (click to toggle)
newmat 1.10.4-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,908 kB
  • sloc: cpp: 31,314; makefile: 56
file content (46 lines) | stat: -rwxr-xr-x 1,065 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
#! /usr/bin/make -f
# -*- makefile -*-
export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS := hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

export DEB_CFLAGS_MAINT_APPEND := -Wall
export DEB_LDFLAGS_MAINT_APPEND := -Wl,-z,defs

CXXFLAGS += -std=gnu++98

# shared library versions,
version=`ls src/.libs/lib*.so.* | \
awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
major=`ls src/.libs/lib*.so.* | \
awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`

libpackage=libnewmat10ldbl

%:
	dh $@

execute_before_dh_autoreconf:
	libtoolize --force --copy
	libtoolize --ltdl --force --copy
	autoheader
	touch NEWS ChangeLog
	aclocal
	autoconf
	automake --add-missing

override_dh_clean:
	rm -rf libltdl
	rm -f *.lo NEWS INSTALL *~
	dh_clean

execute_before_dh_missing:
	find debian/tmp -name '*.la' -print -delete
	find debian/tmp -name '*.a' -print -delete

debian/${libpackage}.symbols:
	debuild -uc -us
	dpkg-gensymbols -p${libpackage} -O$@ -q
	sed -e 's/\( [0-9\.]\+\)\-.\+$$/\1/g' -i $@