File: rules

package info (click to toggle)
tcl-unix-sockets 0.5-3
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 644 kB
  • sloc: ansic: 392; sh: 371; tcl: 40; makefile: 25
file content (43 lines) | stat: -rwxr-xr-x 1,238 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
#!/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
DIR = $(shell pwd)/debian/tcl-unix-sockets

%:
	dh $@

override_dh_gencontrol:
	tcltk-depends
	dh_gencontrol

override_dh_auto_configure:
	dh_auto_configure -- 				\
	--with-tcl=/usr/lib/tcl8.6 			\
	--prefix=/usr 					\
	--libdir=/usr/lib/tcltk/$(DEB_HOST_MULTIARCH) 	\
	--libexecdir=/usr/lib/tcltk/$(DEB_HOST_MULTIARCH)

override_dh_auto_test:

override_dh_auto_install:
	dh_auto_install
	mkdir $(DIR)/usr/share/man/man3
	# Fix up the manpages.
	echo "mangling names in tcl-syslog.n"
	cd $(DIR)/usr/share/man/mann && \
	cat unix_sockets.n | sed -e 's/unix_sockets n/unix_sockets 3tcl/g' > unix_sockets.3tcl ; \
	mv -v unix_sockets.3tcl ../man3/ ; \
	rm -v unix_sockets.n; \
	find $(DIR) -empty -prune -exec rmdir \{\} \; ;