1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This has to be exported to make some magic below work.
export DH_OPTIONS
build: build-stamp
build-stamp:
dh_testdir
mkdir -p debian/tmpdir/usr/lib/locale
localedef -i "lt_LT" -f "ISO-8859-13" "debian/tmpdir/usr/lib/locale/lt_LT.ISO-8859-13"
# Using the locale
(export LOCPATH=debian/tmpdir/usr/lib/locale; export LC_ALL=lt_LT.ISO-8859-13; $(MAKE) myspell)
gzip -c lietuviu.dict > lietuviu.mwl.gz
$(MAKE) aspell
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
$(MAKE) clean
-rm lietuviu.mwl.gz
rm -rf debian/tmpdir
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
dh_install
install -m 644 lietuviu.mwl.gz $(CURDIR)/debian/ilithuanian/usr/share/ispell
touch $(CURDIR)/debian/ilithuanian/var/lib/ispell/lietuviu.hash
touch $(CURDIR)/debian/ilithuanian/var/lib/ispell/lietuviu.compat
installdeb-ispell -pilithuanian
installdeb-myspell --srcdir=$(CURDIR) -pmyspell-lt
installdeb-aspell -paspell-lt
# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs -i ChangeLog
dh_installdocs
dh_link
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb --package=ilithuanian
dh_builddeb --package=myspell-lt
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs -a ChangeLog
dh_installdocs
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb --package=aspell-lt
binary: binary-indep binary-arch
.PHONY: build clean binary binary-indep binary-arch install
|