]> git.lyx.org Git - lyx.git/blobdiff - lib/Makefile.am
Add printing of list of languages for which hyphenation is enabled
[lyx.git] / lib / Makefile.am
index 1369e51635f11073a8976f8e05e7373441fc7427..7257455bd67692559b252ac69801d443dc8d12d1 100644 (file)
@@ -6,33 +6,20 @@ SUBDIRS = doc reLyX
 
 EXTRA_DIST = \
        configure.m4 \
-       chkconfig.ltx \
-       $(pkgdata_DATA) \
-       $(pkgdata_SCRIPTS) \
-       $(bind_DATA) \
-       $(clipart_DATA) \
-       $(examples_DATA) \
-       $(images_DATA) \
-       $(imagesmath_DATA) \
-       $(kbd_DATA) \
-       $(layouts_DATA) \
-       $(lyx2lyx_DATA) \
-       $(lyx2lyx_SCRIPTS) \
-       $(scripts_SCRIPTS) \
-       $(templates_DATA) \
-       $(tex_DATA) \
-       $(ui_DATA)
+       chkconfig.ltx
 
 CHMOD = chmod
 
-pkgdata_DATA = lyxrc.example CREDITS chkconfig.ltx lyxrc.defaults \
-              textclass.lst packages.lst external_templates \
+# We cannot use dist_pkgdata_SCRIPTS for configure, since a possible
+# version-suffix would get appended to the names. So we use dist_pkgdata_DATA
+# and chmod manually in install-data-hook.
+# configure.cmd (used on OS/2) is not installed because it is outdated.
+dist_pkgdata_DATA = lyxrc.example CREDITS chkconfig.ltx configure \
+              lyxrc.defaults textclass.lst packages.lst external_templates \
               encodings languages symbols
 
-pkgdata_SCRIPTS = configure configure.cmd
-
 binddir = $(pkgdatadir)/bind
-bind_DATA = \
+dist_bind_DATA = \
        bind/broadway.bind \
        bind/cua.bind \
        bind/cyrkeys.bind \
@@ -42,6 +29,7 @@ bind_DATA = \
        bind/greekkeys.bind \
        bind/hollywood.bind \
        bind/latinkeys.bind \
+       bind/mac.bind \
        bind/math.bind \
        bind/menus.bind \
        bind/pt_menus.bind \
@@ -51,10 +39,10 @@ bind_DATA = \
        bind/aqua.bind
 
 clipartdir = $(pkgdatadir)/clipart
-clipart_DATA = clipart/platypus.eps
+dist_clipart_DATA = clipart/platypus.eps
 
 examplesdir = $(pkgdatadir)/examples
-examples_DATA = \
+dist_examples_DATA = \
        examples/Foils.lyx \
        examples/ItemizeBullets.lyx \
        examples/Literate.lyx \
@@ -126,7 +114,7 @@ examples_DATA = \
        examples/ro_splash.lyx
 
 imagesdir = $(pkgdatadir)/images
-images_DATA = \
+dist_images_DATA = \
        images/amssymb.xpm \
        images/banner.ppm \
        images/bookmark-goto.xpm \
@@ -227,7 +215,7 @@ images_DATA = \
        images/url-insert.xpm
 
 imagesmathdir = $(imagesdir)/math
-imagesmath_DATA = \
+dist_imagesmath_DATA = \
        images/math/Bbbk.xpm \
        images/math/Finv.xpm \
        images/math/Game.xpm \
@@ -682,7 +670,7 @@ imagesmath_DATA = \
        images/math/zeta.xpm
 
 kbddir = $(pkgdatadir)/kbd
-kbd_DATA = \
+dist_kbd_DATA = \
        kbd/american-2.kmap \
        kbd/american.kmap \
        kbd/arabic.kmap \
@@ -737,7 +725,7 @@ kbd_DATA = \
        kbd/espanol.kmap
 
 layoutsdir = $(pkgdatadir)/layouts
-layouts_DATA =\
+dist_layouts_DATA =\
        layouts/IEEEtran.layout \
        layouts/aa.layout \
        layouts/aapaper.inc \
@@ -761,6 +749,8 @@ layouts_DATA =\
        layouts/cv.layout \
        layouts/db_lyxmacros.inc \
        layouts/db_stdclass.inc \
+       layouts/db_stdcharstyles.inc \
+       layouts/db_stdcounters.inc \
        layouts/db_stdlayouts.inc \
        layouts/db_stdlists.inc \
        layouts/db_stdsections.inc \
@@ -837,7 +827,6 @@ layouts_DATA =\
        layouts/numarticle.inc \
        layouts/numreport.inc \
        layouts/numrevtex.inc \
-       layouts/db_stdcounters.inc \
        layouts/agu-dtd.layout \
        layouts/agu_stdclass.inc \
        layouts/agu_stdcounters.inc \
@@ -848,10 +837,13 @@ layouts_DATA =\
        layouts/svglobal.layout
 
 lyx2lyxdir = $(pkgdatadir)/lyx2lyx
-lyx2lyx_SCRIPTS = lyx2lyx/lyx2lyx
-lyx2lyx_DATA = \
+# 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_DATA = \
        lyx2lyx/lyx2lyx \
        lyx2lyx/parser_tools.py \
+       lyx2lyx/LyX.py \
        lyx2lyx/lyx_0_12.py \
        lyx2lyx/lyx_1_0_0.py \
        lyx2lyx/lyx_1_0_1.py \
@@ -861,10 +853,14 @@ lyx2lyx_DATA = \
        lyx2lyx/lyx_1_1_6fix3.py \
        lyx2lyx/lyx_1_2.py \
        lyx2lyx/lyx_1_3.py \
-       lyx2lyx/lyx_1_4.py
+       lyx2lyx/lyx_1_4.py \
+       lyx2lyx/profiling.py
 
 scriptsdir = $(pkgdatadir)/scripts
-scripts_SCRIPTS = \
+# We cannot use dist_scripts_SCRIPTS, 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_scripts_DATA = \
        scripts/TeXFiles.sh \
        scripts/convertDefault.sh \
        scripts/fen2ascii.py \
@@ -872,10 +868,11 @@ scripts_SCRIPTS = \
        scripts/fig2pstex.sh \
        scripts/listerrors \
        scripts/legacy_lyxpreview2ppm.py \
-       scripts/lyxpreview2bitmap.py
+       scripts/lyxpreview2bitmap.py \
+       scripts/tex_copy.py
 
 templatesdir = $(pkgdatadir)/templates
-templates_DATA = \
+dist_templates_DATA = \
        templates/IEEEtran.lyx \
        templates/README.new_templates \
        templates/aa.lyx \
@@ -898,7 +895,7 @@ templates_DATA = \
        templates/agu_article.lyx
 
 texdir = $(pkgdatadir)/tex
-tex_DATA = \
+dist_tex_DATA = \
        tex/broadway.cls \
        tex/cv.cls \
        tex/hollywood.cls \
@@ -907,7 +904,7 @@ tex_DATA = \
        tex/revtex.cls
 
 uidir = $(pkgdatadir)/ui
-ui_DATA = \
+dist_ui_DATA = \
        ui/classic.ui \
        ui/default.ui \
        ui/stdmenus.ui \
@@ -943,3 +940,10 @@ install-data-local: install-xfonts
 
 
 uninstall-local: uninstall-xfonts
+
+install-data-hook:
+       $(CHMOD) 755 $(DESTDIR)$(pkgdatadir)/lyx2lyx/lyx2lyx
+       $(CHMOD) 755 $(DESTDIR)$(pkgdatadir)/configure
+       for i in $(dist_scripts_DATA); do \
+               $(CHMOD) 755 $(DESTDIR)$(pkgdatadir)/$$i; \
+       done