[med-svn] r4079 - trunk/packages/last-align/trunk/debian

Andreas Tille tille at alioth.debian.org
Tue Sep 29 21:41:38 UTC 2009


Author: tille
Date: 2009-09-29 21:41:38 +0000 (Tue, 29 Sep 2009)
New Revision: 4079

Removed:
   trunk/packages/last-align/trunk/debian/dirs
Modified:
   trunk/packages/last-align/trunk/debian/rules
Log:
Make sure manpages will be compressed


Deleted: trunk/packages/last-align/trunk/debian/dirs
===================================================================
--- trunk/packages/last-align/trunk/debian/dirs	2009-09-29 21:27:48 UTC (rev 4078)
+++ trunk/packages/last-align/trunk/debian/dirs	2009-09-29 21:41:38 UTC (rev 4079)
@@ -1 +0,0 @@
-/usr/share/man/man1/

Modified: trunk/packages/last-align/trunk/debian/rules
===================================================================
--- trunk/packages/last-align/trunk/debian/rules	2009-09-29 21:27:48 UTC (rev 4078)
+++ trunk/packages/last-align/trunk/debian/rules	2009-09-29 21:41:38 UTC (rev 4079)
@@ -14,6 +14,7 @@
 
 pkg=last-align
 version=$(shell dpkg-parsechangelog | grep "^Version:" | sed -e "s/^Version:[[:space:]]\+\([\.0-9]*\)-[0-9]\+[[:space:]]*/\1/" )
+mandir=$(CURDIR)/debian/$(pkg)/usr/share/man/man1/
 
 clean::
 	$(RM) src/lastdb src/lastal src/*.o
@@ -22,25 +23,28 @@
 	prename 's/.py$$//' debian/$(pkg)/usr/bin/*py
 	prename 's/.sh$$//' debian/$(pkg)/usr/bin/*sh
 	mv debian/$(pkg)/usr/share/doc/$(pkg)/ChangeLog.txt.gz debian/$(pkg)/usr/share/doc/$(pkg)/changelog.gz
-	# try to create man pages whereever possible
+
+# try to create man pages whereever possible
+build/$(pkg)::
+	mkdir -p $(mandir)
 	help2man --no-info --name='make a dotplot, a.k.a. Oxford Grid, of alignments in LAST tabular format' \
 	    --version-string="$(version)" \
-	         $(CURDIR)/scripts/last-dotplot.py > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/last-dotplot.1
+	         $(CURDIR)/scripts/last-dotplot.py > $(mandir)/last-dotplot.1
 	help2man --no-info --name="genome-scale comparison of biological sequences" \
 	    --version-string="$(version)" --help-option="-h" \
-                 $(CURDIR)/src/lastal > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/lastal.1
+                 $(CURDIR)/src/lastal > $(mandir)/lastal.1
 	help2man --no-info --name="genome-scale comparison of biological sequences" \
 	    --version-string="$(version)" --help-option="-h" \
-                 $(CURDIR)/src/lastdb > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/lastdb.1
+                 $(CURDIR)/src/lastdb > $(mandir)/lastdb.1
 	help2man --no-info --version-string="$(version)" \
                  --name="Sort MAF-format alignments by sequence name" \
-                 $(CURDIR)/scripts/maf-sort.sh > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/maf-sort.1
+                 $(CURDIR)/scripts/maf-sort.sh > $(mandir)/maf-sort.1
 	help2man --no-info --version-string="$(version)" \
                  --name="changes the order of the sequences in MAF-format alignments" \
-                 $(CURDIR)/scripts/maf-swap.py > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/maf-swap.1
+                 $(CURDIR)/scripts/maf-swap.py > $(mandir)/maf-swap.1
 	help2man --no-info --version-string="$(version)" \
                  --name=" " \
-                 $(CURDIR)/scripts/maf2html.py > $(CURDIR)/debian/$(pkg)/usr/share/man/man1/maf2html.1
+                 $(CURDIR)/scripts/maf2html.py > $(mandir)/maf2html.1
 
 # The unzip command from the unzip package is needed for this one.
 # Please update debian/changelog before calling this target.




More information about the debian-med-commit mailing list