~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-06-16 16:45:22 UTC
  • Revision ID: james.westby@ubuntu.com-20070616164522-m9fwm6npfqnf9k4u
Tags: 1.1.4+ddd105-2
* Fetch revision h API docs.
* Use C compiler so libdds.a doesn't need C++ linkage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#export DH_VERBOSE=1
3
3
 
4
4
include /usr/share/quilt/quilt.make
5
 
D=$(CURDIR)/debian/dds
6
5
 
7
6
build build-indep build-arch: build-stamp
8
7
build-stamp: $(QUILT_STAMPFN)
12
11
        $(MAKE) -C ddd
13
12
        sed -ne '/^\/\* =/,/^\*\//p' ddd/giblib.h > ddd/giblib.txt
14
13
        # pydds
15
 
        -ln -s ../dds.h ../dds.cpp python
 
14
        -ln -s ../dll.h ../dds.cpp python
16
15
        cd python && python setup.py build
17
16
        touch $@
18
17
 
20
19
        dh_testroot
21
20
        dh_clean -k
22
21
        # libdds
23
 
        dh_install -a
 
22
        $(MAKE) install PREFIX=/usr DESTDIR=$(CURDIR)/debian/libdds-dev
24
23
        # dds
25
 
        install -D ddd/ddd debian/dds/usr/games/dds
 
24
        $(MAKE) -C ddd install PREFIX=/usr DESTDIR=$(CURDIR)/debian/dds
26
25
        # pydds
27
 
        cd python && python setup.py install --root ../debian/python-pydds
 
26
        cd python && python setup.py install --root $(CURDIR)/debian/python-pydds
28
27
 
29
28
binary-indep:
30
29
 
31
30
binary-arch: install
32
31
        dh_installchangelogs -a release_notes.txt
 
32
        # the tarball still includes the old revisions
 
33
        rm -f DLL-dds_11_g*
33
34
        dh_installdocs -a -A debian/README.Debian
34
35
        dh_installman -a
35
36
        dh_installexamples -a
50
51
        -$(MAKE) clean
51
52
        -$(MAKE) -C ddd clean
52
53
        rm -rf python/build
53
 
        dh_clean build-stamp ddd/giblib.txt python/dds.h python/dds.cpp
 
54
        dh_clean build-stamp ddd/giblib.txt python/dll.h python/dds.cpp
54
55
 
55
56
.PHONY: build build-indep build-arch clean binary binary-indep binary-arch install configure patch unpatch