~ubuntu-branches/ubuntu/lucid/bve-train-br-class-323-3dcab/lucid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Paul Sladen
  • Date: 2009-01-06 15:13:00 UTC
  • Revision ID: james.westby@ubuntu.com-20090106151300-ctfeopmal2phlwz2
Tags: 20090928-0ubuntu1
* Initial release (LP: #503679)
* New 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
TARGET = $(CURDIR)/debian/bve-train-br-class-323-3dcab
 
5
DOCTARGET = $(TARGET)/usr/share/doc/bve-train-br-class-323-3dcab
 
6
 
 
7
# Standarised location
 
8
BVETARGET = $(TARGET)/usr/share/games/bve
 
9
 
 
10
# Components
 
11
TRAINDIR = Train/Cl323\ Unrefurb_openbve
 
12
README = Readme_3DCab.txt
 
13
 
 
14
# Renamed to something Nicer
 
15
TRAINTARGET = $(BVETARGET)/Train/BR_Class_323
 
16
 
 
17
build: build-stamp
 
18
build-stamp:
 
19
        dh_testdir
 
20
        touch build-stamp
 
21
 
 
22
clean:
 
23
        dh_testdir
 
24
        dh_testroot
 
25
        rm -f build-stamp
 
26
        rm -rf $(TARGET)
 
27
        dh_clean 
 
28
 
 
29
install: build
 
30
        dh_testdir
 
31
        dh_testroot
 
32
        dh_clean -k 
 
33
        dh_installdirs
 
34
 
 
35
        # Install 3D cab add-on files to matching directory
 
36
        cp -a $(CURDIR)/$(TRAINDIR)/* $(TRAINTARGET)/
 
37
        # Delete duplicate files
 
38
        rm $(TRAINTARGET)/train.bmp
 
39
        rm $(TRAINTARGET)/Readme_3DCab.txt
 
40
        # Format the fancy quotes into something standard
 
41
        iconv -f WINDOWS-1251 -t UTF-8 $(CURDIR)/$(TRAINDIR)/$(README) > $(DOCTARGET)/$(README)
 
42
 
 
43
binary-arch:
 
44
        # Do nothing
 
45
 
 
46
binary-indep: build install
 
47
        dh_testdir
 
48
        dh_testroot
 
49
        dh_install
 
50
        dh_installchangelogs
 
51
        dh_installdocs
 
52
        dh_compress
 
53
        dh_fixperms
 
54
        dh_installdeb
 
55
        dh_gencontrol
 
56
        dh_md5sums
 
57
        dh_builddeb
 
58
 
 
59
binary: binary-indep
 
60
.PHONY: build clean binary-indep binary install