File: rules

package info (click to toggle)
ctemplate 2.3-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 3,828 kB
  • sloc: cpp: 15,271; sh: 10,716; ansic: 1,058; makefile: 464; python: 204; lisp: 197; perl: 86
file content (40 lines) | stat: -rwxr-xr-x 1,208 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
#!/usr/bin/make -f

export PTHREAD_CFLAGS=-lpthread

%:
	dh $@ --parallel --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- --program-prefix=ctemplate-

override_dh_auto_test:
	# the tests don't run fine together in parallel or in different order,
	# so run them sequentially
	dh_auto_test --max-parallel=1
	# remove temporary directories not cleaned up automatically
	rm -rf \
	  /tmp/diff_tpl_auto_escape_unittest_sh_dir \
	  /tmp/make_tpl_varnames_h_unittest_sh_dir \
	  /tmp/template_unittest_dir

override_dh_auto_install:
	dh_auto_install
	# kill libtool .la files
	find debian/tmp -name '*.la' -print -delete
	# remove documentation installed by upstream, which is either
	# not useful at all or installed with other tools
	rm -fv \
	  debian/tmp/usr/share/doc/ctemplate-*/AUTHORS \
	  debian/tmp/usr/share/doc/ctemplate-*/ChangeLog \
	  debian/tmp/usr/share/doc/ctemplate-*/COPYING \
	  debian/tmp/usr/share/doc/ctemplate-*/INSTALL \
	  debian/tmp/usr/share/doc/ctemplate-*/NEWS \
	  debian/tmp/usr/share/doc/ctemplate-*/README \
	  debian/tmp/usr/share/doc/ctemplate-*/README_windows.txt

override_dh_install:
	dh_install --list-missing

override_dh_makeshlibs:
	dh_makeshlibs -V