File: rules

package info (click to toggle)
trn4 4.0-test76-18
  • links: PTS
  • area: non-free
  • in suites: squeeze
  • size: 3,080 kB
  • ctags: 2,964
  • sloc: ansic: 48,344; sh: 6,770; tcl: 1,696; yacc: 660; perl: 108; makefile: 34
file content (51 lines) | stat: -rwxr-xr-x 1,307 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
48
49
50
51
#! /usr/bin/make -f
%:
	dh $@

dtmp=debian/trn4

override_dh_auto_configure:
	cp debian/Policy.sh .
	# Configure adds -DDEBUG for us when we use -g.
ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
	./Configure -OdErs -Doptimize='-O2 -g -Wall'
else
	./Configure -OdErs -Doptimize='-g -Wall'
endif
	perl -pi -e "s,^egrep='[^']*/egrep',egrep='egrep'," config.sh
	./Configure -desS

override_dh_auto_clean:
	[ ! -f Makefile ] || $(MAKE) -i spotless

override_dh_auto_install:
	# Do the install ourselves, as we use a slightly different directory
	# layout to what 'make install' wants, and we may not want to strip
	# binaries.

override_dh_install:
	dh_install

	# Group-scanning configuration files.
	install -p -m 0644 default_topic $(dtmp)/etc/trn4/trn4top

	# Man pages.
	install -p -m 0644 trn.1 $(dtmp)/usr/share/man/man1/trn4.1
	for x in Pnews Rnmail strn; do \
		install -p -m 0644 $$x.1 \
			$(dtmp)/usr/share/man/man1/trn4-$$x.1; \
	done
	for x in nntplist trn-artchk; do \
		install -p -m 0644 debian/$$x.1 \
			$(dtmp)/usr/share/man/man1/trn4-$$x.1; \
	done

override_dh_installdocs:
	dh_installdocs
	mv $(dtmp)/usr/share/doc/trn4/changelog $(dtmp)/usr/share/doc/trn4/NEWS

override_dh_installchangelogs:
	dh_installchangelogs debian/changelog.upstream

override_dh_compress:
	dh_compress -X examples