File: rules

package info (click to toggle)
snap 2013-11-29-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,792 kB
  • ctags: 1,298
  • sloc: ansic: 11,717; perl: 580; makefile: 171; sh: 9
file content (38 lines) | stat: -rwxr-xr-x 1,175 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

pkg := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
mandir=$(CURDIR)/debian/$(pkg)/usr/share/man/man1/
bindir=$(CURDIR)/debian/$(pkg)/usr/bin
libdir=$(CURDIR)/debian/$(pkg)/usr/lib/snap
version=$(shell dpkg-parsechangelog | grep '^Version:' | sed 's/^Version: \(.*\)-[^-]\+$$/\1/')

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@ 

override_dh_auto_clean:
	touch depend Zoe/depend
	dh_auto_clean
	if [ -f depend.orig ] ;     then mv depend.orig     depend;     fi
	if [ -f Zoe/depend.orig ] ; then mv Zoe/depend.orig Zoe/depend; fi

override_dh_auto_config:
	cp -a depend     depend.orig
	cp -a Zoe/depend Zoe/depend.orig
	dh_auto_config

override_dh_auto_build:
	dh_auto_build CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"

override_dh_install:
	dh_install
	# cds-trainer.pl and noncoding-trainer.pl are needing the following Perl modules:
	#   IK.pm, FAlite.pm, DataBrowser.pm
	#   since these are not available in Debian there is no point in installing this script
	find debian -name cds-trainer.pl -delete
	find debian -name noncoding-trainer.pl -delete