SUBDIRS = doc lyx2lyx
-EXTRA_DIST = \
- chkconfig.ltx
-
CHMOD = chmod
-# 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.
-dist_pkgdata_DATA = lyxrc.example CREDITS chkconfig.ltx configure.py \
+dist_pkgdata_DATA = lyxrc.example CREDITS chkconfig.ltx \
external_templates encodings languages symbols syntax.default
+# Note that we "chmod 755" manually this file in install-data-hook.
+dist_pkgdata_PYTHON = configure.py
+
dist_noinst_DATA = \
images/README \
images/font-smallcaps.xpm \
layouts/svglobal.layout
scriptsdir = $(pkgdatadir)/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 = \
+# Note that we "chmod 755" manually these files in install-data-hook.
+dist_scripts_PYTHON = \
scripts/TeXFiles.py \
scripts/clean_dvi.py \
scripts/convertDefault.py \
install-data-hook:
$(CHMOD) 755 $(DESTDIR)$(pkgdatadir)/configure.py
- for i in $(dist_scripts_DATA); do \
+ for i in $(dist_scripts_PYTHON); do \
$(CHMOD) 755 $(DESTDIR)$(pkgdatadir)/$$i; \
done
EXTRA_DIST = lyx2lyx_version.py.in
+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 \
lyx_1_5.py \
profiling.py \
test_parser_tools.py
+
+install-data-hook:
+ $(CHMOD) 755 $(DESTDIR)$(lyx2lyxdir)/lyx2lyx