~ubuntu-branches/ubuntu/hardy/plotmtv/hardy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Mikael Hedin
  • Date: 2001-12-17 17:24:49 UTC
  • Revision ID: james.westby@ubuntu.com-20011217172449-h42t8mm2syqzvwso
Tags: 1.4.4t-6
Plot/Imakefile: Changed to ComplexProgramTargetNoMan (closes: #123731)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# Sample debian/rules that uses debhelper.
 
3
# GNU copyright 1997 to 1999 by Joey Hess.
 
4
 
 
5
# Uncomment this to turn on verbose mode.
 
6
#export DH_VERBOSE=1
 
7
 
 
8
# This is the debhelper compatability version to use.
 
9
export DH_COMPAT=2
 
10
 
 
11
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 
12
CFLAGS += -g
 
13
endif
 
14
 
 
15
configure: configure-stamp
 
16
configure-stamp:
 
17
        dh_testdir
 
18
        # Add here commands to configure the package.
 
19
 
 
20
        touch configure-stamp
 
21
 
 
22
build: configure-stamp build-stamp
 
23
build-stamp:
 
24
        dh_testdir
 
25
 
 
26
        # Add here commands to compile the package.
 
27
        xmkmf
 
28
        $(MAKE) World CDEBUGFLAGS=$(CFLAGS)
 
29
        #/usr/bin/docbook-to-man debian/plotmtv.sgml > plotmtv.1
 
30
 
 
31
        touch build-stamp
 
32
 
 
33
clean:
 
34
        dh_testdir
 
35
        dh_testroot
 
36
        rm -f build-stamp configure-stamp
 
37
 
 
38
        # Add here commands to clean up after the build process.
 
39
        -$(MAKE) clean
 
40
        rm -f Bin/*
 
41
        rm -f debian/plotmtv.1x
 
42
        rm -f */Makefile Makefile
 
43
 
 
44
        dh_clean
 
45
 
 
46
install: build
 
47
        dh_testdir
 
48
        dh_testroot
 
49
        dh_clean -k
 
50
        dh_installdirs
 
51
 
 
52
        # Add here commands to install the package into debian/plotmtv.
 
53
        $(MAKE) install DESTDIR=$(CURDIR)/debian/plotmtv
 
54
        install -m 644 Docs/plotmtv.man debian/plotmtv.1x
 
55
        #Hack tp get the right start in DataFormat.ps
 
56
        install -D -m 644  Docs/DataFormat.ps.gz \
 
57
         debian/plotmtv/usr/share/doc/plotmtv/DataFormat.ps.gz
 
58
        gunzip debian/plotmtv/usr/share/doc/plotmtv/DataFormat.ps.gz
 
59
        cd debian/plotmtv/usr/share/doc/plotmtv;\
 
60
         sed -e 1d DataFormat.ps > DataFormat.new;\
 
61
         rm DataFormat.ps; echo '%!PS-Adobe-2.0' > DataFormat.ps; \
 
62
         cat DataFormat.new >> DataFormat.ps; rm DataFormat.new
 
63
 
 
64
# Build architecture-independent files here.
 
65
binary-indep: build install
 
66
# We have nothing to do by default.
 
67
 
 
68
# Build architecture-dependent files here.
 
69
binary-arch: build install
 
70
        dh_testdir
 
71
        dh_testroot
 
72
#       dh_installdebconf       
 
73
        dh_installdocs
 
74
        dh_installexamples Tests/*.mtv
 
75
        install Tests/run.sh debian/plotmtv/usr/share/doc/plotmtv/examples
 
76
        dh_installmenu
 
77
#       dh_installemacsen
 
78
#       dh_installpam
 
79
#       dh_installinit
 
80
        dh_installcron
 
81
        dh_installmanpages
 
82
        dh_installinfo
 
83
#       dh_undocumented
 
84
        dh_installchangelogs 
 
85
        dh_link
 
86
        dh_strip
 
87
        dh_compress -X.mtv -X.sh
 
88
        dh_fixperms
 
89
        # You may want to make some executables suid here.
 
90
#       dh_suidregister
 
91
#       dh_makeshlibs
 
92
        dh_installdeb
 
93
#       dh_perl
 
94
        dh_shlibdeps
 
95
        dh_gencontrol
 
96
        dh_md5sums
 
97
        dh_builddeb
 
98
 
 
99
binary: binary-indep binary-arch
 
100
.PHONY: build clean binary-indep binary-arch binary install configure