File: rules

package info (click to toggle)
macs 2.1.1.20160309-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 13,748 kB
  • ctags: 15,099
  • sloc: python: 2,543; ansic: 829; makefile: 30
file content (36 lines) | stat: -rwxr-xr-x 1,388 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
#!/usr/bin/make -f

export PYBUILD_NAME=MACS2
export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow
DEBVERS        := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
VERSION        := $(shell echo '$(DEBVERS)' | sed -e 's/^[0-9]*://' -e 's/-.*//')
subcommands=callpeak bdgpeakcall bdgbroadcall bdgcmp bdgopt cmbreps bdgdiff \
	      filterdup predictd pileup randsample refinepeak
tagline=\- Model\-based Analysis for ChIP\-Sequencing
# DH_VERBOSE := 1

%:
	dh $@ --with python2 --buildsystem=pybuild

override_dh_auto_build:
	for pyx in `find MACS2/ -name "*.pyx" | grep -v khash`; do \
		rm -f $${pyx%%.pyx}.{h,c}; touch $${pyx}; done
	cp setup.py setup.py.orig
	cp setup_w_cython.py setup.py
	dh_auto_build
	PYTHONPATH=./.pybuild/pythonX.Y_2.7/build/ help2man \
		--no-discard-stderr --no-info \
		--name "macs2 ${tagline}" "python bin/macs2" > debian/macs2.1
	for subcommand in ${subcommands}; do printf \
		"[NAME]\nmacs2_$${subcommand} ${tagline}\n" \
		> debian/macs2_$${subcommand}-man-include; done
	for subcommand in ${subcommands}; do \
		PYTHONPATH=./.pybuild/pythonX.Y_2.7/build/ help2man \
		--no-discard-stderr --no-info --version-string="$(VERSION)" \
		--include debian/macs2_$${subcommand}-man-include \
		"python bin/macs2 $${subcommand}" > \
		debian/macs2_$${subcommand}.1; done

override_dh_auto_clean:
	dh_auto_clean
	rm -f debian/*.1 debian/*-man-include