| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# Uncomment this to turn on verbose mode. |
| 4 |
# export DH_VERBOSE=1 |
| 5 |
|
| 6 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 7 |
|
| 8 |
include /usr/share/dpkg/default.mk |
| 9 |
|
| 10 |
mandir=$(CURDIR)/debian/$(DEB_SOURCE)/usr/share/man/man1/ |
| 11 |
bindir=$(CURDIR)/debian/$(DEB_SOURCE)/usr/bin/ |
| 12 |
debianmedsysdir=/usr/lib/debian-med/bin |
| 13 |
debianmeddir=$(CURDIR)/debian/$(DEB_SOURCE)/$(debianmedsysdir) |
| 14 |
|
| 15 |
%: |
| 16 |
dh $@ |
| 17 |
|
| 18 |
override_dh_installman: |
| 19 |
# try to create man pages whereever possible |
| 20 |
mkdir -p $(mandir) |
| 21 |
help2man --no-info --name='convert or normalize MCMC expression samples' \ |
| 22 |
--version-string="$(DEB_VERSION_UPSTREAM)" --no-discard-stderr \ |
| 23 |
$(bindir)/convertSamples > $(mandir)/convertSamples.1 |
| 24 |
help2man --no-info --name='this bitseq module estimates differential expression from data sets' \ |
| 25 |
--version-string="$(DEB_VERSION_UPSTREAM)" --no-discard-stderr \ |
| 26 |
$(bindir)/estimateDE > $(mandir)/estimateDE.1 |
| 27 |
help2man --no-info --name='estimate expression given precomputed probabilities of (observed) reads'' alignments' \ |
| 28 |
--version-string="$(DEB_VERSION_UPSTREAM)" --no-discard-stderr \ |
| 29 |
$(bindir)/estimateExpression > $(mandir)/estimateExpression.1 |
| 30 |
help2man --no-info --name='estimate expression dependent hyperparameters for bitseq' \ |
| 31 |
--version-string="$(DEB_VERSION_UPSTREAM)" --no-discard-stderr \ |
| 32 |
$(bindir)/estimateHyperPar > $(mandir)/estimateHyperPar.1 |
| 33 |
help2man --no-info --name='estimate expression given precomputed probabilities of (observed) reads'' alignments' \ |
| 34 |
--version-string="$(DEB_VERSION_UPSTREAM)" --no-discard-stderr \ |
| 35 |
$(bindir)/estimateVBExpression > $(mandir)/estimateVBExpression.1 |
| 36 |
help2man --no-info --name='extract MCMC samples of selected transcripts' \ |
| 37 |
--version-string="$(DEB_VERSION_UPSTREAM)" --no-discard-stderr \ |
| 38 |
$(bindir)/extractSamples > $(mandir)/extractSamples.1 |
| 39 |
help2man --no-info --name='computes log_2 Fold Change from MCMC expression samples' \ |
| 40 |
--version-string="$(DEB_VERSION_UPSTREAM)" --no-discard-stderr \ |
| 41 |
$(bindir)/getFoldChange > $(mandir)/getFoldChange.1 |
| 42 |
help2man --no-info --name='compute expression of whole genes' \ |
| 43 |
--version-string="$(DEB_VERSION_UPSTREAM)" --no-discard-stderr \ |
| 44 |
$(bindir)/getGeneExpression > $(mandir)/getGeneExpression.1 |
| 45 |
help2man --no-info --name='compute PPLR from MCMC expression samples' \ |
| 46 |
--version-string="$(DEB_VERSION_UPSTREAM)" --no-discard-stderr \ |
| 47 |
$(bindir)/getPPLR > $(mandir)/getPPLR.1 |
| 48 |
help2man --no-info --name='estimates variance of MCMC samples' \ |
| 49 |
--version-string="$(DEB_VERSION_UPSTREAM)" --no-discard-stderr \ |
| 50 |
$(bindir)/getVariance > $(mandir)/getVariance.1 |
| 51 |
help2man --no-info --name='compute relative expression of transcripts within genes' \ |
| 52 |
--version-string="$(DEB_VERSION_UPSTREAM)" --no-discard-stderr \ |
| 53 |
$(bindir)/getWithinGeneExpression > $(mandir)/getWithinGeneExpression.1 |
| 54 |
help2man --no-info --name='pre\-compute probabilities of (observed) reads'' alignments' \ |
| 55 |
--version-string="$(DEB_VERSION_UPSTREAM)" --no-discard-stderr \ |
| 56 |
$(bindir)/parseAlignment > $(mandir)/parseAlignment.1 |
| 57 |
help2man --no-info --name='helper for bitseq to transpose files lines and columns' \ |
| 58 |
--version-string="$(DEB_VERSION_UPSTREAM)" --no-discard-stderr \ |
| 59 |
$(bindir)/transposeLargeFile > $(mandir)/transposeLargeFile.1 |
| 60 |
help2man --no-info --name='extracts information about transcripts from reference Fasta file' \ |
| 61 |
--version-string="$(DEB_VERSION_UPSTREAM)" --no-discard-stderr \ |
| 62 |
$(debianmeddir)/extractTranscriptInfo.py > $(mandir)/extractTranscriptInfo.1 |
| 63 |
help2man --no-info --name='generate read counts for each input file' \ |
| 64 |
--version-string="$(DEB_VERSION_UPSTREAM)" --no-discard-stderr \ |
| 65 |
$(debianmeddir)/getCounts.py > $(mandir)/getCounts.1 |
| 66 |
|
| 67 |
override_dh_auto_install: |
| 68 |
find -maxdepth 1 -type f -perm /111 -exec dh_install '{}' /usr/bin ';' |
| 69 |
# Provide scripts with extensions in Debian Med dir and without extension in /usr/bin |
| 70 |
mkdir -p $(debianmeddir) |
| 71 |
rm -f debian/$(DEB_SOURCE)/usr/bin/releaseDo.sh # internal BitSeq file, not intended for users |
| 72 |
mv debian/$(DEB_SOURCE)/usr/bin/*.py debian/$(DEB_SOURCE)/usr/bin/*.sh $(debianmeddir) |
| 73 |
# parseAlignment.py suggests itself not to be used so do not expose this |
| 74 |
for script in $(debianmeddir)/* ; do \ |
| 75 |
bscript=`basename $${script}` ; \ |
| 76 |
if [ "$${bscript}" = "parseAlignment.py" ] ; then continue ; fi ; \ |
| 77 |
ln -s $(debianmedsysdir)/$${bscript} $(bindir)/`echo $${bscript} | sed -e 's/\.py$$//' -e 's/\.sh$$//'` ; \ |
| 78 |
done |