]> git.lyx.org Git - lyx.git/blobdiff - lib/Makefile.am
Add support for R package knitr (a Sweave alternative)
[lyx.git] / lib / Makefile.am
index 4aad3d3f01869ea7025abad89b40719ab0fc24e6..7af19a0d81c33e501a5dbc35049efbb973a9605e 100644 (file)
@@ -8,8 +8,9 @@ dist_pkgdata_DATA = CREDITS autocorrect chkconfig.ltx external_templates \
        encodings layouttranslations languages symbols syntax.default \
        unicodesymbols
 
+# We use DATA now instead of PYTHON because automake 1.11.2 complains.
 # Note that we "chmod 755" manually this file in install-data-hook.
-dist_pkgdata_PYTHON = configure.py 
+dist_pkgdata_DATA += configure.py 
 
 dist_noinst_DATA = \
        images/README \
@@ -251,23 +252,31 @@ dist_examples_DATA = \
        examples/iecc05.fen \
        examples/iecc07.fen \
        examples/iecc12.fen \
-       examples/instant_preview.lyx \
        examples/landslide.lyx \
+       examples/instant_preview.lyx \
+       examples/knitr.lyx \
        examples/lilypond.lyx \
        examples/linguistics.lyx \
        examples/listerrors.lyx \
        examples/localization_test.lyx \
+       examples/longsheet.gnumeric \
        examples/modernCV.lyx \
+       examples/MultilingualCaptions.lyx \
        examples/noweb2lyx.lyx \
        examples/powerdot-example.lyx \
        examples/recipebook.lyx \
+       examples/R-S-statements.lyx \
        examples/script_form.lyx \
        examples/seminar.lyx \
        examples/serial_letter1.lyx \
        examples/serial_letter2.lyx \
        examples/serial_letter3.lyx \
+       examples/sheet1.gnumeric \
+       examples/sheet2.ods \
+       examples/sheet3.xls \
        examples/simplecv.lyx \
        examples/splash.lyx \
+       examples/spreadsheet.lyx \
        examples/sweave.lyx \
        examples/tufte-book.lyx \
        examples/tufte-handout.lyx \
@@ -392,7 +401,6 @@ dist_images_DATA = \
        images/layout_Scrap.png \
        images/layout_Section.png \
        images/lyx-quit.png \
-       images/lyx.png \
        images/marginalnote-insert.png \
        images/master-buffer-update.png \
        images/master-buffer-view.png \
@@ -728,6 +736,9 @@ dist_imagesmath_DATA = \
        images/math/mathcal_L.png \
        images/math/mathcal_O.png \
        images/math/mathcircumflex.png \
+       images/math/mathclap.png \
+       images/math/mathllap.png \
+       images/math/mathrlap.png \
        images/math/mathrm_T.png \
        images/math/matrix.png \
        images/math/measuredangle.png \
@@ -860,6 +871,7 @@ dist_imagesmath_DATA = \
        images/math/smallfrown.png \
        images/math/smallsetminus.png \
        images/math/smallsmile.png \
+       images/math/smash.png \
        images/math/smile.png \
        images/math/space.png \
        images/math/spadesuit.png \
@@ -1319,11 +1331,15 @@ dist_layouts_DATA =\
        layouts/article.layout \
        layouts/article-beamer.layout \
        layouts/beamer.layout \
+       layouts/bicaption.module \
        layouts/book.layout \
        layouts/braille.module \
        layouts/broadway.layout \
        layouts/chess.layout \
        layouts/cl2emult.layout \
+       layouts/ctex-article.layout \
+       layouts/ctex-book.layout \
+       layouts/ctex-report.layout \
        layouts/customHeadersFooters.module \
        layouts/db_lyxmacros.inc \
        layouts/db_stdclass.inc \
@@ -1374,6 +1390,7 @@ dist_layouts_DATA =\
        layouts/iopart.layout \
        layouts/isprs.layout \
        layouts/jarticle.layout \
+       layouts/jasatex.layout \
        layouts/jbook.layout \
        layouts/jgrga.layout \
        layouts/jreport.layout \
@@ -1412,6 +1429,7 @@ dist_layouts_DATA =\
        layouts/revtex.layout \
        layouts/revtex4.layout \
        layouts/revtex4-1.layout \
+       layouts/rsphrase.module \
        layouts/scrartcl.layout \
        layouts/scrarticle-beamer.layout \
        layouts/scrbook.layout \
@@ -1451,6 +1469,7 @@ dist_layouts_DATA =\
        layouts/svmult.layout \
        layouts/svprobth.layout \
        layouts/sweave.module \
+       layouts/knitr.module \
        layouts/tabs-within-sections.module \
        layouts/tarticle.layout \
        layouts/tbook.layout \
@@ -1460,6 +1479,7 @@ dist_layouts_DATA =\
        layouts/theorems-ams-bytype.module \
        layouts/theorems-ams-extended.module \
        layouts/theorems-ams-extended-bytype.module \
+       layouts/theorems-case.inc \
        layouts/theorems-chap.module \
        layouts/theorems.inc \
        layouts/theorems-bytype.inc \
@@ -1484,10 +1504,12 @@ dist_layouts_DATA =\
 scriptsdir = $(pkgdatadir)/scripts
 dist_scripts_DATA = \
        scripts/bash_completion \
+       scripts/lyxknitr.R \
        scripts/lyxstangle.R \
        scripts/lyxsweave.R
+# We use DATA now instead of PYTHON because automake 1.11.2 complains.
 # Note that we "chmod 755" manually these files in install-data-hook.
-dist_scripts_PYTHON = \
+dist_scripts_DATA += \
        scripts/clean_dvi.py \
        scripts/convertDefault.py \
        scripts/csv2lyx.py \
@@ -1503,8 +1525,6 @@ dist_scripts_PYTHON = \
        scripts/listerrors \
        scripts/lyxpak.py \
        scripts/lyxpreview2bitmap.py \
-       scripts/lyxpreview-lytex2bitmap.py \
-       scripts/lyxpreview-platex2bitmap.py \
        scripts/lyxpreview_tools.py \
        scripts/prefs2prefs.py \
        scripts/prefs2prefs_lfuns.py \
@@ -1519,13 +1539,14 @@ dist_templates_DATA = \
        templates/ACM-siggraph.lyx \
        templates/ACM-sigplan.lyx \
        templates/AEA.lyx \
-       templates/agutex.lyx \
-       templates/agu_article.lyx \
-       templates/apa.lyx \
+       templates/AGUTeX.lyx \
+       templates/AGU_article.lyx \
+       templates/APA.lyx \
        templates/beamer-conference-ornate-20min.lyx \
+       templates/ctex.lyx \
        templates/de_beamer-conference-ornate-20min.lyx \
        templates/dinbrief.lyx \
-       templates/docbook_article.lyx \
+       templates/DocBook_article.lyx \
        templates/ectaart.lyx \
        templates/elsarticle.lyx \
        templates/es_beamer-conference-ornate-20min.lyx \
@@ -1536,9 +1557,10 @@ dist_templates_DATA = \
        templates/g-brief-en.lyx \
        templates/hollywood.lyx \
        templates/IEEEtran.lyx \
-       templates/ijmpc.lyx \
-       templates/ijmpd.lyx \
-       templates/iop-article.lyx \
+       templates/IJMPC.lyx \
+       templates/IJMPD.lyx \
+       templates/IOP-article.lyx \
+       templates/JASA.lyx \
        templates/JSS-article.lyx \
        templates/kluwer.lyx \
        templates/koma-letter2.lyx \
@@ -1576,7 +1598,7 @@ dist_springertemplates_DATA = \
        templates/springer/svmult_part.lyx \
        templates/springer/svmult_preface.lyx \
        templates/springer/svmult_referenc.lyx
-       
+
 thesistemplatesdir = $(pkgdatadir)/templates/thesis
 dist_thesistemplates_DATA = \
        templates/thesis/Acknowledgments.lyx \
@@ -1608,8 +1630,34 @@ dist_ui_DATA = \
        ui/stdmenus.inc \
        ui/stdtoolbars.inc
 
+if INSTALL_POSIX
+# install application icons. The 'hicolor' theme is the default theme
+# where applications themselves should install their icons.
+lyx@program_suffix@.svg: images/lyx.svg
+       $(AM_V_GEN)$(INSTALL_DATA) $< $@
+scalableappiconsdir = $(datadir)/icons/hicolor/scalable/apps
+scalableappicons_DATA = lyx@program_suffix@.svg
+
+lyx@program_suffix@.png: images/lyx.png
+       $(AM_V_GEN)$(INSTALL_DATA) $< $@
+fixedappiconsdir = $(datadir)/icons/hicolor/48x48/apps
+fixedappicons_DATA = lyx@program_suffix@.png
+
+# if configure is asked to generate the name with suffix directly, then
+# config.status refuses to rebuild this file (with a variable name), and
+# a build error ensues when lyx.desktop.in is changed.
+lyx@program_suffix@.desktop: lyx.desktop-temp
+       $(AM_V_GEN)$(INSTALL_DATA) $< $@
+desktopdir = $(datadir)/applications
+desktop_DATA = lyx@program_suffix@.desktop
+
+CLEANFILES += lyx@program_suffix@.desktop lyx.desktop-temp \
+              lyx@program_suffix@.svg lyx@program_suffix@.png
+endif
+dist_noinst_DATA += lyx.desktop.in images/lyx.svg images/lyx.png
+
 install-data-hook:
        $(CHMOD) 755 $(DESTDIR)$(pkgdatadir)/configure.py
-       for i in $(dist_scripts_PYTHON); do \
+       for i in $(scriptdir)/*.py ; do \
                $(CHMOD) 755 $(DESTDIR)$(pkgdatadir)/$$i; \
        done