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 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479
|
AUTOMAKE_OPTIONS = foreign subdir-objects
SUBDIRS = . po manual
DIST_SUBDIRS = ${SUBDIRS} examples myspell lib5
# These are needed due to a bug in Automake
pkgdatadir = @pkgdatadir@
pkglibdir = @pkglibdir@
filterdir = ${pkglibdir}
optdir = ${pkgdatadir}
localedir = ${datadir}/locale
PERLPROG = @PERLPROG@
AM_CPPFLAGS = -I${srcdir}/gen -I${srcdir}/common \
-I${srcdir}/interfaces/cc/ -I${srcdir}/modules/speller/default/
SUFFIXES = .info
noinst_DATA =
EXTRA_DIST = config.rpath win32/Makefile win32/settings.h
########################################################################
#
# libaspell and friends
#
lib_LTLIBRARIES = libaspell.la
if PSPELL_COMPATIBILITY
lib_LTLIBRARIES += libpspell.la
endif
libaspell_la_SOURCES =\
common/cache.cpp\
common/string.cpp\
common/getdata.cpp\
common/itemize.cpp\
common/file_util.cpp\
common/string_map.cpp\
common/string_list.cpp\
common/config.cpp\
common/version.cpp\
common/posib_err.cpp\
common/errors.cpp\
common/error.cpp\
common/fstream.cpp\
common/iostream.cpp\
common/info.cpp\
common/can_have_error.cpp\
common/convert.cpp\
common/tokenizer.cpp\
common/speller.cpp\
common/document_checker.cpp\
common/filter.cpp\
common/objstack.cpp \
common/strtonum.cpp\
common/gettext_init.cpp\
common/file_data_util.cpp\
modules/speller/default/readonly_ws.cpp\
modules/speller/default/suggest.cpp\
modules/speller/default/data.cpp\
modules/speller/default/multi_ws.cpp\
modules/speller/default/phonetic.cpp\
modules/speller/default/writable.cpp\
modules/speller/default/speller_impl.cpp\
modules/speller/default/phonet.cpp\
modules/speller/default/typo_editdist.cpp\
modules/speller/default/editdist.cpp\
modules/speller/default/primes.cpp\
modules/speller/default/language.cpp\
modules/speller/default/leditdist.cpp\
modules/speller/default/affix.cpp\
modules/tokenizer/basic.cpp\
lib/filter-c.cpp\
lib/word_list-c.cpp\
lib/info-c.cpp\
lib/mutable_container-c.cpp\
lib/error-c.cpp\
lib/document_checker-c.cpp\
lib/string_map-c.cpp\
lib/new_config.cpp\
lib/config-c.cpp\
lib/string_enumeration-c.cpp\
lib/can_have_error-c.cpp\
lib/dummy.cpp\
lib/new_filter.cpp\
lib/new_fmode.cpp\
lib/string_list-c.cpp\
lib/find_speller.cpp\
lib/speller-c.cpp\
lib/string_pair_enumeration-c.cpp\
lib/new_checker.cpp
libaspell_la_LIBADD = $(LTLIBINTL) $(PTHREAD_LIB)
## The version string is current[:revision[:age]]
##
## Before a release that has changed the source code at all
## increment revision.
##
## After merging changes that have changed the API in a backwards
## comptable way set revision to 0 and bump both current and age.
##
## Do not change the API in a backwards incompatible way.
##
## See "Libtool: Updating version info"
## (https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html)
## for more into
##
if INCREMENTED_SONAME
libaspell_la_LDFLAGS = -version-info 19:1:3 -no-undefined
else
## Use C-1:R:A
libaspell_la_LDFLAGS = -version-info 18:1:3 -no-undefined
endif
if PSPELL_COMPATIBILITY
libpspell_la_SOURCES = lib/dummy.cpp
libpspell_la_LIBADD = libaspell.la
libpspell_la_LDFLAGS = $(libaspell_la_LDFLAGS)
endif
if W_ALL_ERROR
warning-settings.mk: ${srcdir}/test/warning-settings.cpp
$(CXX) ${srcdir}/test/warning-settings.cpp -o warning-settings
./warning-settings > warning-settings.mk
include warning-settings.mk
CXXFLAGS += $(EXTRA_CXXFLAGS)
endif
EXTRA_DIST += common/*.hpp common/*.h\
modules/speller/default/*.hpp\
lib/*.hpp
########################################################################
#
# Aspell Program
#
AM_CPPFLAGS += -DLOCALEDIR="$(localedir)"
bin_PROGRAMS = word-list-compress aspell prezip-bin
word_list_compress_SOURCES = prog/compress.c
aspell_SOURCES = prog/aspell.cpp prog/check_funs.cpp prog/checker_string.cpp
aspell_LDADD = libaspell.la $(CURSES_LIB)
prezip_bin_SOURCES = prog/prezip.c
EXTRA_DIST += prog/*.hpp
########################################################################
#
# Filter Modules
#
# This is for filters which are ALWAYS static. Currently only the
# URL filter
libaspell_la_SOURCES += modules/filter/url.cpp
static_optfiles = modules/filter/url-filter.info
dynamic_optfiles =
###
### To add a new filter follow the instruction that begin with '###'
###
### Add the .info file your filter comes with
optfiles = \
modules/filter/ddtp-filter.info\
modules/filter/debctrl-filter.info\
modules/filter/email-filter.info\
modules/filter/tex-filter.info\
modules/filter/sgml-filter.info\
modules/filter/markdown-filter.info\
modules/filter/html-filter.info\
modules/filter/context-filter.info\
modules/filter/nroff-filter.info\
modules/filter/texinfo-filter.info
### Add all your aspell mode files ###
fltfiles = \
modules/filter/modes/ddtp.amf \
modules/filter/modes/debctrl.amf \
modules/filter/modes/html.amf \
modules/filter/modes/sgml.amf \
modules/filter/modes/markdown.amf \
modules/filter/modes/tex.amf \
modules/filter/modes/email.amf \
modules/filter/modes/ccpp.amf \
modules/filter/modes/none.amf \
modules/filter/modes/perl.amf \
modules/filter/modes/url.amf \
modules/filter/modes/comment.amf \
modules/filter/modes/nroff.amf\
modules/filter/modes/texinfo.amf
if COMPILE_IN_FILTERS
static_optfiles += ${optfiles}
### Add your filter sources here,
### starting with file containing filter class definition followed by
### file containing filter member implementation.
libaspell_la_SOURCES +=\
modules/filter/ddtp.cpp\
modules/filter/debctrl.cpp\
modules/filter/email.cpp\
modules/filter/tex.cpp\
modules/filter/sgml.cpp\
modules/filter/markdown.cpp\
modules/filter/context.cpp\
modules/filter/nroff.cpp\
modules/filter/texinfo.cpp
else # not COMPILE_IN_FILTERS
dynamic_optfiles += ${optfiles}
filter_ldflags = -module -avoid-version
### Add name of filter library containing your filter. Name always
### must look like lib<filtername>-filter.la see development manual
filter_LTLIBRARIES = debctrl-filter.la ddtp-filter.la\
email-filter.la tex-filter.la\
sgml-filter.la markdown-filter.la context-filter.la\
nroff-filter.la texinfo-filter.la
debctrl_filter_la_SOURCES = modules/filter/debctrl.cpp
debctrl_filter_la_LIBADD = libaspell.la
debctrl_filter_la_LDFLAGS = ${filter_ldflags}
ddtp_filter_la_SOURCES = modules/filter/ddtp.cpp
ddtp_filter_la_LIBADD = libaspell.la
ddtp_filter_la_LDFLAGS = ${filter_ldflags}
email_filter_la_SOURCES = modules/filter/email.cpp
email_filter_la_LIBADD = libaspell.la
email_filter_la_LDFLAGS = ${filter_ldflags}
tex_filter_la_SOURCES = modules/filter/tex.cpp
tex_filter_la_LIBADD = libaspell.la
tex_filter_la_LDFLAGS = ${filter_ldflags}
sgml_filter_la_SOURCES = modules/filter/sgml.cpp
sgml_filter_la_LIBADD = libaspell.la
sgml_filter_la_LDFLAGS = ${filter_ldflags}
markdown_filter_la_SOURCES = modules/filter/markdown.cpp
markdown_filter_la_LIBADD = libaspell.la
markdown_filter_la_LDFLAGS = ${filter_ldflags}
context_filter_la_SOURCES = modules/filter/context.cpp
context_filter_la_LIBADD = libaspell.la
context_filter_la_LDFLAGS = ${filter_ldflags}
nroff_filter_la_SOURCES = modules/filter/nroff.cpp
nroff_filter_la_LIBADD = libaspell.la
nroff_filter_la_LDFLAGS = ${filter_ldflags}
texinfo_filter_la_SOURCES = modules/filter/texinfo.cpp
texinfo_filter_la_LIBADD = libaspell.la
texinfo_filter_la_LDFLAGS = ${filter_ldflags}
ddtp_filter_la_SOURCES = modules/filter/ddtp.cpp
ddtp_filter_la_LIBADD = libaspell.la
ddtp_filter_la_LDFLAGS = ${filter_ldflags}
### Before this line add the corresponding <yourfilterlibrary>_SOURCES and
### <yourfilterlibrary>_LIBADD lines. The later at least has to look
### like <yourfilterlibrary>_LIBADD = ${top_builddir}/lib/libaspell.la
### in order to make your filter build properly
endif # COMPILE_IN_FILTERS
noinst_DATA += $(static_optfiles) gen/filter.pot
# opt_DATA = $(dynamic_optfiles)
filter_DATA = $(fltfiles) $(dynamic_optfiles)
# settings.h added as a dependency so it will get recreated if
# the COMPILE_IN_FILTERS option changes
gen/static_filters.src.cpp: ${static_optfiles} gen/mk-static-filter.pl gen/settings.h
${PERLPROG} ${srcdir}/gen/mk-static-filter.pl $(addprefix ${srcdir}/,${static_optfiles})
${srcdir}/lib/new_filter.cpp: gen/static_filters.src.cpp
gen/filter.pot: gen/mk-filter-pot.pl ${static_optfiles} ${dynamic_optfiles}
${PERLPROG} ${srcdir}/gen/mk-filter-pot.pl
EXTRA_DIST += ${static_optfiles} ${dynamic_optfiles} ${fltfiles} \
gen/mk-static-filter.pl gen/mk-filter-pot.pl\
gen/filter.pot
CLEANFILES = gen/static_filters.src.cpp
########################################################################
#
# Mk Dirs Target
#
${srcdir}/common/config.cpp: gen/dirs.h
gen/dirs.h: gen/mk-dirs_h.pl
perl ${srcdir}/gen/mk-dirs_h.pl ${prefix} ${pkgdatadir} ${pkglibdir} ${sysconfdir} ${debdictdir} > gen/dirs.h
EXTRA_DIST += gen/mk-dirs_h.pl
CLEANFILES += gen/dirs.h
########################################################################
#
# Scripts
#
bin_SCRIPTS = scripts/run-with-aspell scripts/aspell-import \
scripts/prezip scripts/preunzip scripts/precat
pkgdata_SCRIPTS = scripts/spell scripts/ispell
scripts/run-with-aspell: scripts/run-with-aspell.create
sh ${srcdir}/scripts/run-with-aspell.create ${pkgdatadir} > scripts/run-with-aspell
chmod 755 scripts/run-with-aspell
if PSPELL_COMPATIBILITY
bin_SCRIPTS += scripts/pspell-config
scripts/pspell-config: scripts/mkconfig
sh ${srcdir}/scripts/mkconfig ${VERSION} ${datadir} ${pkgdatadir}
CLEANFILES += scripts/pspell-config
endif
CLEANFILES += scripts/run-with-aspell
EXTRA_DIST += scripts/mkconfig scripts/spell scripts/ispell \
scripts/run-with-aspell.create scripts/aspell-import\
scripts/prezip scripts/preunzip scripts/precat
########################################################################
#
# auto
#
noinst_DATA += auto
mksrc = \
auto/mk-src.in auto/mk-src.pl auto/mk-doc.pl\
auto/MkSrc/CcHelper.pm auto/MkSrc/Methods.pm\
auto/MkSrc/ProcImpl.pm auto/MkSrc/Read.pm\
auto/MkSrc/Create.pm auto/MkSrc/ProcCc.pm\
auto/MkSrc/ProcNativeImpl.pm auto/MkSrc/Type.pm\
auto/MkSrc/Info.pm auto/MkSrc/ProcCxx.pm\
auto/MkSrc/ProcNative.pm auto/MkSrc/Util.pm
$(srcdir)/auto/auto: @MAINTAINER_MODE_TRUE@ ${mksrc}
cd "$(srcdir)/auto" && perl -I ./ mk-src.pl
cd "$(srcdir)/auto" && perl -I ./ mk-doc.pl
@MAINTAINER_MODE_TRUE@include $(srcdir)/auto/auto
EXTRA_DIST += auto/auto auto/mk-src.txt ${mksrc}
########################################################################
#
# interfaces
#
include_HEADERS = interfaces/cc/aspell.h
if PSPELL_COMPATIBILITY
pspell_includedir = ${includedir}/pspell
pspell_include_HEADERS = interfaces/cc/pspell.h
endif
########################################################################
#
# Misc Top level
#
pkgdata_DATA = \
data/cp1250.cmap data/cp1250.cset \
data/cp1251.cmap data/cp1251.cset \
data/cp1252.cmap data/cp1252.cset \
data/cp1253.cmap data/cp1253.cset \
data/cp1254.cmap data/cp1254.cset \
data/cp1255.cmap data/cp1255.cset \
data/cp1256.cmap data/cp1256.cset \
data/cp1257.cmap data/cp1257.cset \
data/cp1258.cmap data/cp1258.cset \
data/iso-8859-1.cmap data/iso-8859-1.cset \
data/iso-8859-2.cmap data/iso-8859-2.cset \
data/iso-8859-3.cmap data/iso-8859-3.cset \
data/iso-8859-4.cmap data/iso-8859-4.cset \
data/iso-8859-5.cmap data/iso-8859-5.cset \
data/iso-8859-6.cmap data/iso-8859-6.cset \
data/iso-8859-7.cmap data/iso-8859-7.cset \
data/iso-8859-8.cmap data/iso-8859-8.cset \
data/iso-8859-9.cmap data/iso-8859-9.cset \
data/iso-8859-10.cmap data/iso-8859-10.cset \
data/iso-8859-11.cmap data/iso-8859-11.cset \
data/iso-8859-13.cmap data/iso-8859-13.cset \
data/iso-8859-14.cmap data/iso-8859-14.cset \
data/iso-8859-15.cmap data/iso-8859-15.cset \
data/iso-8859-16.cmap data/iso-8859-16.cset \
data/koi8-r.cmap data/koi8-r.cset \
data/koi8-u.cmap data/koi8-u.cset \
data/dvorak.kbd data/split.kbd data/standard.kbd \
data/u-deva.cmap data/u-deva.cset
EXTRA_DIST += config.rpath README ${pkgdata_DATA} m4/*.m4 \
misc/po-filter.c
README: manual/readme.texi
makeinfo --no-validate --no-headers $< > README
maintainer-clean-local:
@find . \( -name '*.?pp' -o -name '*.h' -o -name '*.info' \) -print |\
xargs grep -l "Automatically generated file." |\
xargs rm
dist-hook:
mkdir $(distdir)/maintainer
cp autogen.sh config-opt config-debug TODO FIXMEs README.md sanity-check.sh \
$(distdir)/maintainer
cp -a autogen $(distdir)/maintainer
distcheck: dist
tar xfv $(distdir).tar.gz
cd $(distdir) && maintainer/sanity-check.sh
ACLOCAL_AMFLAGS = -I m4
.PHONY: .manual fake-manual
.manual:
$(MAKE) -C manual manual
manual: .manual
$(MAKE) -C manual manual
fake-manual:
$(MAKE) -C manual fake-manual
########################################################################
#
# Tests
#
EXTRA_DIST += \
test/Makefile \
test/warning-settings.cpp \
test/cxx_warnings_test.cpp \
test/en.dat \
test/en.prepl \
test/en_phonet.dat \
test/en_repl.dat \
test/filter-test \
test/markdown.dat \
test/misc/commonmark-proc \
test/sanity \
test/suggest.mk \
test/suggest/??-*-expect.res \
test/suggest/??-*.tab \
test/suggest/comp \
test/suggest/filter.pl \
test/suggest/mkmk \
test/suggest/refresh \
test/suggest/run-batch \
test/wide_test_invalid.c \
test/wide_test_valid.c
|