X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flyx2lyx%2FMakefile.am;h=99132404153dbe3edc2add30a9c4d0818eb0512f;hb=a91d1ebe820fe7ace78ec83ae159b6597e6be96c;hp=a7dca42b5547fd3bbe19416a526fe3318c1b1321;hpb=69664082dabc93cdcf90280f9e1812b44d1a9bb5;p=lyx.git diff --git a/lib/lyx2lyx/Makefile.am b/lib/lyx2lyx/Makefile.am index a7dca42b55..9913240415 100644 --- a/lib/lyx2lyx/Makefile.am +++ b/lib/lyx2lyx/Makefile.am @@ -1,24 +1,53 @@ include $(top_srcdir)/config/common.am -CLEANFILES += *.pyc *.pyo +CLEANFILES = *.pyc *.pyo + +EXTRA_DIST = lyx2lyx_version.py.in test_parser_tools.py CMakeLists.txt + +CHMOD = chmod lyx2lyxdir = $(pkgdatadir)/lyx2lyx -# We cannot use dist_lyx2lyx_SCRIPTS for lyx2lyx, since a possible -# version-suffix would get appended to the names. So we use dist_scripts_DATA -# and chmod manually in install-data-hook. dist_lyx2lyx_PYTHON = \ lyx2lyx \ lyx2lyx_version.py \ + lyx2lyx_lang.py \ + generate_encoding_info.py \ parser_tools.py \ + lyx2lyx_tools.py \ + unicode_symbols.py \ LyX.py \ + lyx_0_06.py \ + lyx_0_08.py \ + lyx_0_10.py \ lyx_0_12.py \ - lyx_1_0_0.py \ - lyx_1_0_1.py \ - lyx_1_1_4.py \ + lyx_1_0.py \ + lyx_1_1.py \ lyx_1_1_5.py \ - lyx_1_1_6.py \ - lyx_1_1_6fix3.py \ + lyx_1_1_6_0.py \ + lyx_1_1_6_3.py \ lyx_1_2.py \ lyx_1_3.py \ lyx_1_4.py \ - profiling.py + lyx_1_5.py \ + lyx_1_6.py \ + lyx_2_0.py \ + lyx_2_1.py \ + lyx_2_2.py \ + lyx_2_3.py \ + lyx_2_4.py \ + profiling.py \ + test_parser_tools.py + +install-data-hook: + $(CHMOD) 755 $(DESTDIR)$(lyx2lyxdir)/lyx2lyx + +alltests: check alltests-recursive + +alltests-recursive: + @$(PYTHON) "$(srcdir)/test_parser_tools.py"; \ + if test $$? -eq 0; then \ + echo -e "=====================\nlyx2lyx tests passed.\n====================="; \ + else \ + echo -e "=====================\nlyx2lyx tests failed.\n====================="; \ + fi +