~ubuntu-branches/ubuntu/intrepid/dds/intrepid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg
  • Date: 2007-03-12 16:49:36 UTC
  • Revision ID: james.westby@ubuntu.com-20070312164936-61c1otdzt33pf1a5
Tags: 1.1.3+ddd105-1
New dds upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
#export DH_VERBOSE=1
 
3
 
 
4
include /usr/share/quilt/quilt.make
 
5
D=$(CURDIR)/debian/dds
 
6
 
 
7
build build-indep build-arch: build-stamp
 
8
build-stamp: $(QUILT_STAMPFN)
 
9
        # libdds
 
10
        $(MAKE)
 
11
        # dds
 
12
        $(MAKE) -C ddd
 
13
        sed -ne '/^\/\* =/,/^\*\//p' ddd/giblib.h > ddd/giblib.txt
 
14
        # pydds
 
15
        -ln -s ../dds.h ../dds.cpp python
 
16
        cd python && python setup.py build
 
17
        touch $@
 
18
 
 
19
install: build-stamp
 
20
        dh_testroot
 
21
        dh_clean -k
 
22
        # libdds
 
23
        dh_install -a
 
24
        # dds
 
25
        install -D ddd/ddd debian/dds/usr/games/dds
 
26
        # pydds
 
27
        cd python && python setup.py install --root ../debian/python-pydds
 
28
 
 
29
binary-indep:
 
30
 
 
31
binary-arch: install
 
32
        dh_installchangelogs -a release_notes.txt
 
33
        dh_installdocs -a -A debian/README.Debian
 
34
        dh_installman -a
 
35
        dh_installexamples -a
 
36
        dh_strip -a
 
37
        dh_compress -a
 
38
        dh_pycentral -p'python-pydds'
 
39
        dh_fixperms -a
 
40
        dh_shlibdeps -a
 
41
        dh_installdeb -a
 
42
        dh_gencontrol -a
 
43
        dh_md5sums -a
 
44
        dh_builddeb -a
 
45
 
 
46
binary: binary-indep binary-arch
 
47
 
 
48
clean: unpatch
 
49
        dh_testdir
 
50
        -$(MAKE) clean
 
51
        -$(MAKE) -C ddd clean
 
52
        rm -rf python/build
 
53
        dh_clean build-stamp ddd/giblib.txt python/dds.h python/dds.cpp
 
54
 
 
55
.PHONY: build build-indep build-arch clean binary binary-indep binary-arch install configure patch unpatch