~kamalmostafa/ubuntu/lucid/nauty/fix-521190-ftbfs

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): David Bremner
  • Date: 2009-08-05 22:40:14 UTC
  • Revision ID: james.westby@ubuntu.com-20090805224014-rr3q9s8iln527bzr
Tags: 2.4~b7-1
Initial release (Closes: #529094)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
 
 
4
# Uncomment this to turn on verbose mode.
 
5
#export DH_VERBOSE=1
 
6
 
 
7
include /usr/share/quilt/quilt.make
 
8
# use wildcard to avoid warning from dh
 
9
include $(wildcard /usr/share/topgit/tg2quilt.mk)
 
10
 
 
11
%:
 
12
        dh --with quilt $@
 
13
 
 
14
override_dh_auto_build:
 
15
        $(MAKE) BUILDSHLIBS=libnauty.so SONAME=libnauty.so.0d
 
16
 
 
17
override_dh_auto_clean:
 
18
        $(MAKE) -f makefile.basic clean
 
19
 
 
20
override_dh_auto_install: 
 
21
        #this is a bit crude, but dh_install and dh_link are both being too clever.
 
22
        mkdir -p debian/libnauty-dev/usr/lib && ln -sf $(SONAME) debian/libnauty-dev/usr/lib/libnauty.so
 
23
 
 
24
override_dh_auto_test:
 
25
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
 
26
        make checks
 
27
endif