~ubuntu-branches/ubuntu/quantal/sgt-puzzles/quantal

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings
  • Date: 2011-03-01 04:16:54 UTC
  • mfrom: (1.2.9 upstream)
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20110301041654-949qy9qrroziy7vq
* New upstream version:
  - Add Range and Signpost puzzles
  - Use stock icons and conventional order for dialog buttons
  - Use Cairo for screen rendering
* Update German translation, thanks to Helge Kreutzmann
* Remove or update patches applied or partially applied upstream
* Use Debian source format 3.0 (quilt)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
include /usr/share/quilt/quilt.make
4
 
 
5
3
# We require some bash features
6
4
override SHELL := /bin/bash
7
5
 
20
18
        touch build-indep-stamp
21
19
 
22
20
build-arch: build-arch-stamp
23
 
build-arch-stamp: Makefile
 
21
build-arch-stamp: Makefile install-po-stamp
24
22
        $(MAKE) "VER=-DREVISION=$(UPSTREAM_VERSION)" \
25
23
            "XFLAGS=-DDEBIAN_VERSION=\"\\\"$(DEBIAN_VERSION)\\\"\" -DHELP_BROWSER_PATH=\"\\\"yelp:khelpcenter:sensible-browser\\\"\"" \
26
24
            puzzles
28
26
        touch build-arch-stamp
29
27
 
30
28
# We patch these sources and so must rebuild the Makefile.
31
 
Makefile : $(QUILT_STAMPFN) mkfiles.pl Recipe
 
29
Makefile : backup-regen-stamp mkfiles.pl Recipe
32
30
        ./mkfiles.pl
33
31
 
34
32
binary : binary-arch binary-indep
68
66
 
69
67
binary-indep :
70
68
 
71
 
$(QUILT_STAMPFN) : backup-regen-stamp install-po-stamp
72
 
 
73
69
backup-regen-stamp :
74
70
        mkdir -p debian/orig/
75
71
        cp $(DIST_REGEN_FILES) debian/orig/
80
76
        cp -p debian/po/*.po po/
81
77
        touch $@
82
78
 
83
 
clean : unpatch
84
 
        ! [ -d debian/orig ] || { mv debian/orig/* . && rmdir debian/orig ; }
 
79
clean :
 
80
        ! [ -f Makefile ] || $(MAKE) clean
 
81
        ! [ -d debian/orig ] || { $(MAKE) -f Makefile.doc clean && mv debian/orig/* . && rmdir debian/orig ; }
85
82
        rm -rf po *-stamp
86
 
        dh_clean debian/substvars wingames.lst
87
 
 
88
 
unpatch : clean-patched
89
 
 
90
 
clean-patched :
91
 
        ! [ -f Makefile ] || $(MAKE) clean
92
 
        ! [ -d debian/orig ] || $(MAKE) -f Makefile.doc clean
 
83
        dh_clean debian/substvars version2.def wingames.lst
93
84
 
94
85
get-orig-source :
95
86
        wget -O sgt-puzzles_$(UPSTREAM_VERSION).orig.tar.gz \
96
87
            http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-r$(UPSTREAM_VERSION).tar.gz
97
88
 
98
 
.PHONY : build binary binary-arch binary-dep clean clean-unpatched get-orig-source
 
89
.PHONY : build binary binary-arch binary-dep clean get-orig-source