~ubuntu-branches/ubuntu/saucy/propaganda-debian/saucy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2005-04-10 11:46:30 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050410114630-0ghtqyudg5jojo3j
Tags: 13.5-7
* Fix lintian warning.
* Improved description (closes: #303893)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# Made with the aid of debmake, by Christoph Lameter,
3
 
# based on the sample debian/rules file for GNU hello by Ian Jackson.
4
 
 
5
 
package=propaganda-debian
6
 
 
7
 
build:
8
 
        $(checkdir)
 
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
 
 
9
CFLAGS = -Wall -g
 
10
 
 
11
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
12
        CFLAGS += -O0
 
13
else
 
14
        CFLAGS += -O2
 
15
endif
 
16
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
17
        INSTALL_PROGRAM += -s
 
18
endif
 
19
 
 
20
configure: configure-stamp
 
21
configure-stamp:
 
22
        dh_testdir
 
23
        # Add here commands to configure the package.
 
24
 
 
25
        touch configure-stamp
 
26
 
 
27
 
 
28
build: build-stamp
 
29
 
 
30
build-stamp: configure-stamp 
 
31
        dh_testdir
 
32
        touch build-stamp
9
33
 
10
34
clean:
11
 
        $(checkdir)
12
 
        -rm -f `find . -name "*~"`
13
 
        -rm -rf debian/tmp debian/files* debian/substvars
14
 
 
15
 
binary-indep: build
16
 
        $(checkdir)
17
 
        -rm -rf debian/tmp
18
 
        install -d debian/tmp
19
 
        cd debian/tmp && install -d `cat ../dirs`
20
 
        cp script.perl debian/tmp/usr/share/backgrounds/propaganda/vol13.5
21
 
        cp *.html debian/tmp/usr/share/backgrounds/propaganda/vol13.5
22
 
        cp *.JPG debian/tmp/usr/share/backgrounds/propaganda/vol13.5
23
 
        debstd
24
 
        dpkg-gencontrol
25
 
        chown -R root.root debian/tmp
26
 
        chmod -R go=rX debian/tmp
27
 
        dpkg --build debian/tmp ..
28
 
 
29
 
binary-arch: build
30
 
 
31
 
define checkdir
32
 
        test -f debian/rules
33
 
endef
 
35
        dh_testdir
 
36
        dh_testroot
 
37
        rm -f build-stamp configure-stamp
 
38
        dh_clean
 
39
 
 
40
install: build
 
41
        dh_testdir
 
42
        dh_testroot
 
43
        dh_clean -k
 
44
        dh_installdirs
 
45
 
 
46
        cp images/*.JPG $(CURDIR)/debian/propaganda-debian/usr/share/wallpapers
 
47
        cp html/*.html $(CURDIR)/debian/propaganda-debian/usr/share/doc/propaganda-debian/html
 
48
 
 
49
# Build architecture-independent files here.
 
50
binary-indep: build install
 
51
 
 
52
# Build architecture-dependent files here.
 
53
binary-arch: build install
 
54
        dh_testdir
 
55
        dh_testroot
 
56
        dh_installchangelogs 
 
57
        dh_installdocs
 
58
        dh_installexamples
 
59
#       dh_install
 
60
#       dh_installmenu
 
61
#       dh_installdebconf       
 
62
#       dh_installlogrotate
 
63
#       dh_installemacsen
 
64
#       dh_installpam
 
65
#       dh_installmime
 
66
#       dh_installinit
 
67
#       dh_installcron
 
68
#       dh_installinfo
 
69
#       dh_installman
 
70
        dh_link
 
71
#       dh_strip
 
72
        dh_compress
 
73
        dh_fixperms
 
74
#       dh_perl
 
75
#       dh_python
 
76
#       dh_makeshlibs
 
77
        dh_installdeb
 
78
        dh_shlibdeps
 
79
        dh_gencontrol
 
80
        dh_md5sums
 
81
        dh_builddeb
34
82
 
35
83
binary: binary-indep binary-arch
36
 
 
37
 
.PHONY: binary binary-arch binary-indep clean
 
84
.PHONY: build clean binary-indep binary-arch binary install configure