File: rules

package info (click to toggle)
ncbi-seg 0.0.20000620-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 504 kB
  • ctags: 435
  • sloc: ansic: 6,259; makefile: 90
file content (37 lines) | stat: -rwxr-xr-x 1,090 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
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
export CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
export LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)

ver := 0.0.20000620
pkg := ncbi-seg

.PHONY: get-orig-source
get-orig-source:
	set -e; \
	t=$$(mktemp -d) || exit 1; \
	trap "rm -rf -- '$$t'" EXIT; \
	d="$$t/$(pkg)-$(ver).orig"; \
	mkdir "$$d"; \
	( cd "$$d"; \
	wget \
		ftp://ftp.ncbi.nih.gov/pub/seg/seg/README\
		ftp://ftp.ncbi.nih.gov/pub/seg/seg/genwin.c\
		ftp://ftp.ncbi.nih.gov/pub/seg/seg/genwin.h\
		ftp://ftp.ncbi.nih.gov/pub/seg/seg/hiseg.c\
		ftp://ftp.ncbi.nih.gov/pub/seg/seg/lnfac.h\
		ftp://ftp.ncbi.nih.gov/pub/seg/seg/makefile\
		ftp://ftp.ncbi.nih.gov/pub/seg/seg/seg.c\
		ftp://ftp.ncbi.nih.gov/pub/seg/seg/seg.doc; \
	); \
	GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "./$(pkg)_$(ver).orig.tar.gz" -C "$$t" "$(pkg)-$(ver).orig"

.PHONY: override_dh_autoreconf
override_dh_autoreconf:
	dh_autoreconf -X./COPYING

%:
	dh $@ --with autoreconf