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
|
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2003-2007 Jonas Smedegaard <dr@jones.dk>
# See debian/README.cdbs-tweaks for info on local overrides
include debian/cdbs/1/rules/upstream-tarball.mk
include debian/cdbs/1/rules/copyright-check.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
include /usr/share/cdbs/1/class/makefile.mk
include debian/cdbs/1/rules/buildinfo.mk
include debian/cdbs/1/class/dict.mk
include /usr/share/cdbs/1/rules/debhelper.mk
DEB_UPSTREAM_URL = http://da.speling.org/filer
DEB_UPSTREAM_TARBALL_MD5 = 5141b58ec020233072d815dd0c58ad78
DEB_MAKE_BUILD_TARGET = all
DEB_INSTALL_DOCS_ALL += contributors
DEB_DICT_LANG = danish
DEB_DICT_NATIVELANG = dansk
DEB_DICT_LANGCODE = da
DEB_DICT_COUNTRYCODE = DK
# dsdo still use old aspell layout per default
DEB_ASPELL_DIR = new_aspell
# Duplicate clean rules, as Makefiles are unpatched at clean time
clean:: language_code = $(DEB_DICT_LANGCODE)
clean:: sprog = $(DEB_DICT_NATIVELANG)
clean:: language_code = $(DEB_DICT_LANGCODE)
clean:: country_code = $(DEB_DICT_COUNTRYCODE)
clean::
cd aspell && rm -f $(sprog)
cd ispell && rm -f words-$(language_code).complete.stat $(sprog).hash words-$(language_code).complete.cnt *~ $(sprog)-fake $(sprog)-fake.cnt $(sprog)-fake.stat $(sprog)-fake.hash words-$(language_code) words-$(language_code)-in_ispell_list words-$(language_code)-missing_in_ispell_list words-$(language_code).complete words-$(language_code).munched
cd new_aspell && rm -f $(language_code).cwl
rm -f words-$(language_code) words-$(language_code).excluded
# Needed for by upstream build process
CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), ispell, perl
# Fix double cdbs build-dependencies
CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bcdbs (>= 0.4.39)/ s/ *,* *\bcdbs (>= \(0.4.23-1.1\|0.4.27\)) *,* */, /g' -e 's/^ *, *//' -e 's/ *, *$$//')
|