0 | 0 |
#!/usr/bin/make -f
|
1 | 1 |
|
2 | |
# Uncomment this to turn on verbose mode.
|
3 | |
#export DH_VERBOSE=1
|
|
2 |
DICT_LANG = ar-large
|
|
3 |
BASEDIR = `pwd`/debian/aspell-ar-large
|
4 | 4 |
|
5 | |
# This has to be exported to make some magic below work.
|
6 | |
export DH_OPTIONS
|
|
5 |
%:
|
|
6 |
dh $@
|
7 | 7 |
|
8 | |
DICT_LANG = ar-large
|
9 | |
DEB_DESTDIR = `pwd`/debian/aspell-ar-large
|
10 | |
|
11 | |
configure-stamp:
|
12 | |
dh_testdir
|
|
8 |
override_dh_auto_configure:
|
13 | 9 |
./configure
|
14 | 10 |
cp ar.cwl ar-large.cwl
|
15 | 11 |
cp debian/ar-large.dat .
|
16 | 12 |
cp ar_affix.dat ar-large_affix.dat
|
17 | 13 |
cp l-ar.cset l-ar-large.cset
|
18 | 14 |
cp l-ar.cmap l-ar-large.cmap
|
19 | |
touch configure-stamp
|
20 | 15 |
|
21 | |
build: build-arch build-indep
|
22 | |
|
23 | |
build-arch: build-stamp
|
24 | |
|
25 | |
build-indep: build-stamp
|
26 | |
|
27 | |
build-stamp: configure-stamp
|
28 | |
dh_testdir
|
29 | |
$(MAKE)
|
30 | |
touch build-stamp
|
31 | |
|
32 | |
clean: clean-source
|
33 | |
|
34 | |
clean-source:
|
35 | |
dh_testdir
|
36 | |
dh_testroot
|
37 | |
rm -f build-stamp configure-stamp
|
|
16 |
override_dh_auto_clean:
|
38 | 17 |
[ ! -f Makefile ] || $(MAKE) distclean
|
39 | 18 |
rm -f Makefile
|
40 | 19 |
rm -f ar-large.cwl
|
|
44 | 23 |
rm -f l-ar-large.cmap
|
45 | 24 |
dh_clean
|
46 | 25 |
|
47 | |
install: DH_OPTIONS=
|
48 | |
install: build
|
49 | |
dh_testdir
|
50 | |
dh_testroot
|
51 | |
dh_clean -k
|
52 | |
dh_installdirs
|
53 | |
# copy files from the debian dir so 'make install' with do the rest
|
|
26 |
override_dh_auto_install:
|
54 | 27 |
cp debian/arabic-large.alias debian/ar-large.multi debian/ar-large.dat .
|
55 | |
$(MAKE) DESTDIR=$(DEB_DESTDIR) install
|
56 | |
gzip -9c ar-large.cwl > $(DEB_DESTDIR)/usr/share/aspell/ar-large.cwl.gz
|
57 | |
rm -f $(DEB_DESTDIR)/usr/lib/aspell/ar-large.rws
|
58 | |
|
|
28 |
$(MAKE) DESTDIR=$(BASEDIR) install
|
|
29 |
rm -f $(BASEDIR)/usr/lib/aspell/ar-large.rws
|
|
30 |
gzip -9c ar-large.cwl > $(BASEDIR)/usr/share/aspell/ar-large.cwl.gz
|
59 | 31 |
installdeb-aspell
|
60 | |
|
61 | |
|
62 | |
# Build architecture-independent files here.
|
63 | |
# Pass -i to all debhelper commands in this target to reduce clutter.
|
64 | |
binary-indep: DH_OPTIONS=-i
|
65 | |
binary-indep: build install
|
66 | |
dh_testdir
|
67 | |
dh_testroot
|
68 | |
dh_installdocs
|
69 | |
dh_installexamples
|
70 | |
dh_installchangelogs
|
71 | |
dh_link
|
72 | |
dh_compress
|
73 | |
dh_fixperms
|
74 | |
dh_installdeb
|
75 | |
dh_gencontrol
|
76 | |
dh_md5sums
|
77 | |
dh_builddeb
|
78 | |
|
79 | |
# Build architecture-dependent files here.
|
80 | |
binary-arch: DH_OPTIONS=-a
|
81 | |
binary-arch: build install
|
82 | |
# nothing.
|
83 | |
|
84 | |
binary: binary-indep binary-arch
|
85 | |
.PHONY: build clean binary-indep binary-arch binary install configure
|