test -f lua/Makefile && cd lua && $(MAKE) install || true
in the target "install-data-local", in bindings/Makefile.am. It forces
execution of bindings/lua/Makefile independently of lua being found or
not. I added that line in my first patch, following perl, python and
ruby build style, but it's not needed after I switched to automake. The
make recursion is controlled by SUBDIRS, which will only contain "lua"
if BUILD_LUA is true.
-- Fidelis Assis
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1645
a5681a0c-68f1-0310-ab6d-
d61299d08faa
-.PHONY: python ruby lua
+.PHONY: python ruby
if BUILD_TCL
SUB_tcl = tcl
test -f perl-shared/Makefile && cd perl-shared && $(MAKE) install || true
test -f ruby/Makefile && cd ruby && $(MAKE) EPREFIX=$(DESTDIR)$(exec_prefix) $(RUBY_MAKE_OPTIONS) install || true
test -d python/build && cd python && env BUILDLIBDIR=../../src/.libs $(PYTHON) setup.py install --skip-build --prefix=$(DESTDIR)$(prefix) --exec-prefix=$(DESTDIR)$(exec_prefix) || true
- test -f lua/Makefile && cd lua && $(MAKE) install || true
# rules for building the ruby module
# RUBYARCHDIR= is to work around in a makefile quirk not sure
CLEANFILES = rrd.o rrd.so test.lua test.rrd test.png
-if BUILD_LUA
lualibdir=$(LUA_INSTALL_CMOD)
lualib_LTLIBRARIES = rrd.la
if LUA_NEED_OUR_COMPAT51
test: test.lua
$(LUA) test.lua
-endif
rpntutorial.pod rrdfirst.pod rrdgraph_rpn.pod rrdtool.pod rrdcached.pod \
rrd-beginners.pod rrdinfo.pod rrdtune.pod rrdbuild.pod rrdflush.pod \
rrdcgi.pod rrdgraph.pod rrdlast.pod rrdlastupdate.pod \
- rrdcreate.pod rrdgraph_data.pod rrdresize.pod rrdtutorial.pod rrdlua.pod
+ rrdcreate.pod rrdgraph_data.pod rrdresize.pod rrdtutorial.pod
+if BUILD_LUA
+ POD += rrdlua.pod
+endif
PMP = RRDs.pod RRDp.pod