File: rules

package info (click to toggle)
ctemplate 2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,272 kB
  • sloc: cpp: 15,201; ansic: 1,058; sh: 592; makefile: 462; python: 205; lisp: 197; perl: 86
file content (37 lines) | stat: -rwxr-xr-x 1,122 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
#!/usr/bin/make -f

export PTHREAD_CFLAGS=-lpthread

%:
	dh $@

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_missing:
	dh_missing --fail-missing