aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile_Elua.am
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-07-13 15:41:15 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-07-13 15:41:15 -0400
commit5849debc97ae6675614d668db8d64c2892ee882a (patch)
tree129a91beb745906657f51edd852fc2a70dbf6051 /src/Makefile_Elua.am
parentbuild: fix distcheck building when main tree is not compiled (diff)
downloadefl-5849debc97ae6675614d668db8d64c2892ee882a.tar.gz
build: fix distcheck when elua is disabled in main tree
Summary: elua example files were not being distributed correctly as a result of improper use of build conditionals Depends on https://phab.enlightenment.org/D6582 Reviewers: devilhorns, ManMower Reviewed By: ManMower Subscribers: #committers, cedric Tags: #efl_build Differential Revision: https://phab.enlightenment.org/D6583
Diffstat (limited to 'src/Makefile_Elua.am')
-rw-r--r--src/Makefile_Elua.am46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/Makefile_Elua.am b/src/Makefile_Elua.am
index bd1da51f90..bc2513f903 100644
--- a/src/Makefile_Elua.am
+++ b/src/Makefile_Elua.am
@@ -54,41 +54,33 @@ ELUA_APPS_DIR = $(abs_top_srcdir)/src/scripts/elua/apps
### Helper for other modules using Elua
include Makefile_Elua_Helper.am
-eluaappsdir = $(datadir)/elua/apps
-
-eluaapps_DATA = \
+endif
+eluaapps_files = \
scripts/elua/apps/lualian.lua \
scripts/elua/apps/gendoc.lua \
scripts/elua/apps/gendoc.sh \
scripts/elua/apps/README-docgen.md
-EXTRA_DIST2 += $(eluaapps_DATA)
+EXTRA_DIST2 += $(eluaapps_files)
-eluadocgendir = $(datadir)/elua/apps/docgen
-
-eluadocgen_DATA = \
+eluadocgen_files = \
scripts/elua/apps/docgen/doctree.lua \
scripts/elua/apps/docgen/keyref.lua \
scripts/elua/apps/docgen/stats.lua \
scripts/elua/apps/docgen/util.lua \
scripts/elua/apps/docgen/writer.lua
-EXTRA_DIST2 += $(eluadocgen_DATA)
-
-eluamodulesdir = $(datadir)/elua/modules
-
-eluamodules_DATA = \
+EXTRA_DIST2 += $(eluadocgen_files)
+eluamodules_files = \
scripts/elua/modules/benchmark.lua \
scripts/elua/modules/getopt.lua \
scripts/elua/modules/lualian.lua \
bindings/luajit/eo.lua \
bindings/luajit/eolian.lua
-EXTRA_DIST2 += $(eluamodules_DATA)
+EXTRA_DIST2 += $(eluamodules_files)
-eluaeinadir = $(eluamodulesdir)/eina
-
-eluaeina_DATA = \
+eluaeina_files = \
bindings/luajit/eina/accessor.lua \
bindings/luajit/eina/counter.lua \
bindings/luajit/eina/file.lua \
@@ -100,18 +92,27 @@ eluaeina_DATA = \
bindings/luajit/eina/tiler.lua \
bindings/luajit/eina/xattr.lua
-EXTRA_DIST2 += $(eluaeina_DATA)
+EXTRA_DIST2 += $(eluaeina_files)
-eluacoredir = $(datadir)/elua/core
-
-eluacore_DATA = \
+eluacore_files = \
scripts/elua/core/gettext.lua \
scripts/elua/core/module.lua \
scripts/elua/core/serializer.lua \
scripts/elua/core/util.lua
-EXTRA_DIST2 += $(eluacore_DATA)
+EXTRA_DIST2 += $(eluacore_files)
+if HAVE_ELUA
+eluaappsdir = $(datadir)/elua/apps
+eluaapps_DATA = $(eluaapps_files)
+eluamodulesdir = $(datadir)/elua/modules
+eluamodules_DATA = $(eluamodules_files)
+eluadocgendir = $(datadir)/elua/apps/docgen
+eluadocgen_DATA = $(eluadocgen_files)
+eluaeinadir = $(eluamodulesdir)/eina
+eluaeina_DATA = $(eluaeina_files)
+eluacoredir = $(datadir)/elua/core
+eluacore_DATA = $(eluacore_files)
if EFL_ENABLE_TESTS
check_PROGRAMS += tests/elua/elua_suite
@@ -145,6 +146,5 @@ tests_elua_elua_suite_DEPENDENCIES = @USE_ELUA_INTERNAL_LIBS@
endif
-EXTRA_DIST2 += tests/elua/data/apps/test.lua
-
endif
+EXTRA_DIST2 += tests/elua/data/apps/test.lua