File: rules

package info (click to toggle)
tcl-syslog 2.0.2-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 504 kB
  • sloc: ansic: 742; sh: 400; tcl: 388; makefile: 27
file content (47 lines) | stat: -rwxr-xr-x 1,284 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

# See debhelper(7) (uncomment to enable).
# Output every command that modifies files on the build system.
#export DH_VERBOSE = 1

# query for the architecture triplet we build for
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

# See FEATURE AREAS in dpkg-buildflags(1).
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# See ENVIRONMENT in dpkg-buildflags(1).
# Package maintainers to append CFLAGS.
export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic -I/usr/include/tcl
# Package maintainers to append LDFLAGS.
#export DEB_LDFLAGS_MAINT_APPEND = -Wl
DIR = $(shell pwd)/debian/tcl-syslog
TCLVERSIONS = 8.6 9.0

%:
	dh $@

override_dh_gencontrol:
	tcltk-depends
	dh_gencontrol

override_dh_auto_configure:
	autoupdate
	for v in $(TCLVERSIONS) ; do \
		dh_auto_configure -B$(CURDIR)/debian/$$v --	\
		--with-tcl=/usr/lib/tcl$$v 			\
		--prefix=/usr 					\
                --mandir=/usr/share/man				\
		--libdir=/usr/lib/tcltk/$(DEB_HOST_MULTIARCH) 	\
		--libexecdir=/usr/lib/tcltk/$(DEB_HOST_MULTIARCH) ; \
	done

override_dh_auto_test:

override_dh_auto_install:
	for v in $(TCLVERSIONS) ; do \
	    dh_auto_install -B$(CURDIR)/debian/$$v ; \
	done
	rmdir  $(CURDIR)/debian/tcl-syslog/usr/bin
	rm -fr $(CURDIR)/debian/tcl-syslog/usr/include