annotate debian/rules @ 389:d19a6cf1c2e3

some typos corrected
author gabucino
date Fri, 13 Apr 2001 15:01:49 +0000
parents 531d58007138
children 82bd5187d6d8
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.
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
4
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
5 package=mplayer
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
6
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
7 build:
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
8 $(checkdir)
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
9 ./setup.sh
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
10 ./configure --prefix=/usr `cat setup.s`
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
11 make dep
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
12 make
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
13 touch build
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
14
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
15 clean:
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
16 $(checkdir)
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
17 -rm -f build
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
18 -$(MAKE) distclean
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
19 -rm -f `find . -name "*~"`
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
20 -rm -rf debian/tmp debian/files* core debian/substvars
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
21
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
22 binary-indep: checkroot build
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
23 $(checkdir)
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
24 # There are no architecture-independent files to be uploaded
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
25 # generated by this package. If there were any they would be
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
26 # made here.
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
27
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
28 binary-arch: checkroot build
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
29 $(checkdir)
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
30 -rm -rf debian/tmp
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
31 install -d debian/tmp
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
32 cd debian/tmp && install -d `cat ../dirs`
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
33 $(MAKE) install prefix=`pwd`/debian/tmp/usr
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
34 # Must have debmake installed for this to work. Otherwise please copy
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
35 # /usr/bin/debstd into the debian directory and change debstd to debian/debstd
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
36 debstd
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
37 dpkg-gencontrol -isp
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
38 chown -R root.root debian/tmp
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
39 chmod -R go=rX debian/tmp
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
40 dpkg --build debian/tmp ..
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
41
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
42 define checkdir
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
43 test -f debian/rules
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
44 endef
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
45
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
46 binary: binary-indep binary-arch
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
47
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
48 checkroot:
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
49 $(checkdir)
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
50 test root = "`whoami`"
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
51
531d58007138 Initial revision
arpi_esp
parents:
diff changeset
52 .PHONY: binary binary-arch binary-indep clean checkroot