annotate debian/rules @ 1733:220f86ac8c15

examples and started cleanup of rules by andre.dahlqvist@telia.com
author eyck
date Tue, 28 Aug 2001 19:34:32 +0000
parents 1548cfd585e3
children df6660716f69
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
1 #!/usr/bin/make -f
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
2 # Made with the aid of debmake, by Christoph Lameter,
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
3 # based on the sample debian/rules file for GNU hello by Ian Jackson.
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
4 #export DH_VERBOSE=1
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
5 # This is the debhelper compatability version to use.
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
6 export DH_COMPAT=1
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
7
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
8 package=mplayer
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
9
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
10 configure: configure-stamp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
11 configure-stamp:
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
12 dh_testdir
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
13 # Add here commands to configure the package.
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
14 $(checkdir)
821
82bd5187d6d8 Tiny changes in debian part.
eyck
parents: 18
diff changeset
15 ./configure --prefix=/usr
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
16
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
17 touch configure-stamp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
18
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
19 build: configure-stamp build-stamp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
20 build-stamp:
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
21 dh_testdir
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
22
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
23 # Add here commands to compile the package.
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
24 #$(MAKE)
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
25 #/usr/bin/docbook-to-man debian/etherconf.sgml > etherconf.1
1634
3249bbc48bf9 Changes to debian packaging based on patches by Josip Rodin (joy debian org)
eyck
parents: 1397
diff changeset
26 ${MAKE} mplayer
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
27
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
28 touch build-stamp
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
29
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
30 clean:
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
31 dh_testdir
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
32 dh_testroot
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
33 rm -f build-stamp configure-stamp
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
34
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
35 # Add here commands to clean up after the build process.
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
36 #-$(MAKE) clean
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
37 # $(checkdir)
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
38 # -rm -f build
1719
42c5b24221e7 no need for TVout/fbset/fb.modes.5
eyck
parents: 1705
diff changeset
39 -$(MAKE) distclean
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
40 # -rm -f `find . -name "*~"`
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
41 # -rm -rf debian/tmp debian/files* core debian/substvars
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
42 dh_clean
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
43
845
29a3f57d5e1d spellcheck, start of integration with debian menu system, /etc/mplayer.conf
eyck
parents: 821
diff changeset
44
29a3f57d5e1d spellcheck, start of integration with debian menu system, /etc/mplayer.conf
eyck
parents: 821
diff changeset
45
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
46 install: build
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
47 dh_testdir
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
48 dh_testroot
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
49 dh_clean -k
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
50 dh_installdirs
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
51
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
52 # Add here commands to install the package into debian/<packagename>
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
53 # $(MAKE) prefix=`pwd`/debian/`dh_listpackages`/usr install
1667
6a227dc19dec install man accordingly to Debian Policy
eyck
parents: 1648
diff changeset
54 # $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
6a227dc19dec install man accordingly to Debian Policy
eyck
parents: 1648
diff changeset
55 install -m 755 -s mplayer $(CURDIR)/debian/tmp/usr/bin/mplayer
6a227dc19dec install man accordingly to Debian Policy
eyck
parents: 1648
diff changeset
56 #Do we really need this?:
6a227dc19dec install man accordingly to Debian Policy
eyck
parents: 1648
diff changeset
57 # install -o root -g root -m 4755 fibmap_mplayer usr/bin/fibmap_mplayer
6a227dc19dec install man accordingly to Debian Policy
eyck
parents: 1648
diff changeset
58
845
29a3f57d5e1d spellcheck, start of integration with debian menu system, /etc/mplayer.conf
eyck
parents: 821
diff changeset
59
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
60 # Build architecture-independent files here.
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
61 binary-indep: build install
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
62 # We have nothing to do by default.
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
63
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
64
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
65 # Build architecture-dependent files here.
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
66 binary-arch: build install
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
67 dh_testdir
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
68 dh_testroot
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
69 dh_installdebconf
1634
3249bbc48bf9 Changes to debian packaging based on patches by Josip Rodin (joy debian org)
eyck
parents: 1397
diff changeset
70 dh_installdocs DOCS/*
1733
220f86ac8c15 examples and started cleanup of rules by andre.dahlqvist@telia.com
eyck
parents: 1721
diff changeset
71 dh_installexamples etc/example.conf
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
72 dh_installmenu
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
73 # dh_installmime
1721
1548cfd585e3 No need for TVout/fbset/fbset.8, it conflicts with the one distributed by debian
eyck
parents: 1720
diff changeset
74 dh_installmanpages TVout/fbset/fb.modes.5 TVout/fbset/fbset.8
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
75 dh_installinfo
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
76 # dh_undocumented
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
77 dh_installchangelogs
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
78 dh_link
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
79 dh_strip
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
80 dh_compress
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
81 dh_fixperms
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
82 # dh_makeshlibs
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
83 dh_installdeb
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
84 dh_perl
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
85 dh_shlibdeps
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
86 dh_gencontrol
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
87 dh_md5sums
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
88 dh_builddeb
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
89
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
90
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
91
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
92 #binary-arch: checkroot build
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
93 # $(checkdir)
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
94 # -rm -rf debian/tmp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
95 # install -d debian/tmp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
96 # cd debian/tmp && install -d `cat ../dirs`
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
97
845
29a3f57d5e1d spellcheck, start of integration with debian menu system, /etc/mplayer.conf
eyck
parents: 821
diff changeset
98
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
99 # Must have debmake installed for this to work. Otherwise please copy
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
100 # /usr/bin/debstd into the debian directory and change debstd to debian/debstd
1397
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
101 # debstd
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
102 # dpkg-gencontrol -isp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
103 # chown -R root.root debian/tmp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
104 # chmod -R go=rX debian/tmp
225b8fb7653f using debhelper instead of hardcoded stuff
eyck
parents: 1231
diff changeset
105 # dpkg --build debian/tmp ..
18
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
106
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
107 binary: binary-indep binary-arch
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
108
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
109 .PHONY: binary binary-arch binary-indep clean checkroot