"Fossies" - the Fresh Open Source Software Archive

Member "aspell-0.60.8/Makefile.am" (12 Oct 2019, 12659 Bytes) of package /linux/misc/aspell-0.60.8.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.am": 0.60.7_vs_0.60.8.

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