~ubuntu-branches/ubuntu/utopic/jed-extra/utopic-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2003-10-02 22:24:16 UTC
  • Revision ID: james.westby@ubuntu.com-20031002222416-vedia4c2ckbmun12
Tags: 0.1.8
Changed jed-common to jed in Build-Depends (closes: #213755).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# debian/rules file for jed-extra
 
3
# GNU copyright 2003 by Rafael Laboissiere <rafael@debian.org>
 
4
 
 
5
# Uncomment this to turn on verbose mode.
 
6
#export DH_VERBOSE=1
 
7
 
 
8
sl_files =                  \
 
9
    ispell/flyspell.sl      \
 
10
    ispell/ispell_common.sl \
 
11
    ispell/ispell.sl        \
 
12
    ispell/vispell.sl       \
 
13
    ispell/look.sl          \
 
14
    sl_utils/bufutils.sl    \
 
15
    sl_utils/csvutils.sl    \
 
16
    sl_utils/datutils.sl    \
 
17
    sl_utils/sl_utils.sl    \
 
18
    sl_utils/strutils.sl    \
 
19
    sl_utils/txtutils.sl
 
20
 
 
21
slc_files = $(sl_files:%.sl=%.slc)
 
22
 
 
23
jed_root = /usr/share/jed
 
24
debroot = $(shell pwd)/debian/jed-extra
 
25
site_lib_dir = $(jed_root)/site-lib
 
26
jed_init_dir = /etc/jed-init.d
 
27
 
 
28
untar:
 
29
        dh_testdir
 
30
        tar xfz ispell.tgz
 
31
        mkdir -p sl_utils
 
32
        ( cd sl_utils ; tar xfz ../sl_utils.tar.gz )
 
33
        tar xfz home-lib.tgz
 
34
 
 
35
patch:
 
36
        dh_testdir
 
37
        @for i in `find patch -name \*.patch` ; do \
 
38
            echo Applying patch $$i ; \
 
39
            patch -p0 --no-backup-if-mismatch < $$i ; \
 
40
        done
 
41
 
 
42
byte-compile:
 
43
        echo $(sl_files) | eperl compile-files.sl.in -o compile-files.sl
 
44
        jed -batch -l ./compile-files.sl
 
45
 
 
46
build: build-stamp
 
47
build-stamp: untar patch byte-compile
 
48
        dh_testdir
 
49
        touch build-stamp
 
50
 
 
51
clean:
 
52
        dh_testdir
 
53
        dh_testroot
 
54
 
 
55
        rm -rf ispell sl_utils home-lib compile-files.sl build-stamp
 
56
 
 
57
        dh_clean
 
58
 
 
59
install: build
 
60
        dh_testdir
 
61
        dh_testroot
 
62
        dh_clean -k
 
63
        dh_installdirs $(site_lib_dir) $(jed_init_dir)
 
64
 
 
65
        install --mode=644 $(sl_files) $(slc_files) $(debroot)$(site_lib_dir)
 
66
        install --mode=644 home-lib/home-lib.sl \
 
67
            $(debroot)$(jed_init_dir)/05home-lib.sl
 
68
        install --mode=644 ispell/ispell_init.sl \
 
69
            $(debroot)$(jed_init_dir)/55ispell.sl
 
70
 
 
71
 
 
72
# Build architecture-independent files here.
 
73
binary-indep: build install
 
74
        dh_testdir
 
75
        dh_testroot
 
76
        dh_installchangelogs
 
77
        dh_installdocs
 
78
#       dh_installexamples
 
79
#       dh_install
 
80
#       dh_installmenu
 
81
#       dh_installdebconf
 
82
#       dh_installlogrotate
 
83
#       dh_installemacsen
 
84
#       dh_installpam
 
85
#       dh_installmime
 
86
#       dh_installinit
 
87
#       dh_installcron
 
88
#       dh_installinfo
 
89
#       dh_installman
 
90
#       dh_link
 
91
#       dh_strip
 
92
        dh_compress
 
93
        dh_fixperms
 
94
#       dh_perl
 
95
#       dh_python
 
96
#       dh_makeshlibs
 
97
        dh_installdeb
 
98
#       dh_shlibdeps
 
99
        dh_gencontrol
 
100
        dh_md5sums
 
101
        dh_builddeb
 
102
 
 
103
# Build architecture-dependent files here.
 
104
binary-arch:
 
105
# We have nothing to do by default.
 
106
 
 
107
binary: binary-indep binary-arch
 
108
.PHONY: build clean binary-indep binary-arch binary install untar patch \
 
109
    byte-compile