Blame Makefile.am

Packit 437b5e
# Non-recursive Make rules.
Packit 437b5e
#
Packit 437b5e
# Copyright (C) 2013-2015 Gary V. Vaughan
Packit 437b5e
# Written by Gary V. Vaughan, 2013
Packit 437b5e
#
Packit 437b5e
# This program is free software; you can redistribute it and/or modify it
Packit 437b5e
# under the terms of the GNU General Public License as published by
Packit 437b5e
# the Free Software Foundation; either version 3, or (at your option)
Packit 437b5e
# any later version.
Packit 437b5e
#
Packit 437b5e
# This program is distributed in the hope that it will be useful, but
Packit 437b5e
# WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 437b5e
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 437b5e
# General Public License for more details.
Packit 437b5e
#
Packit 437b5e
# You should have received a copy of the GNU General Public License
Packit 437b5e
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit 437b5e
Packit 437b5e
Packit 437b5e
## ------------ ##
Packit 437b5e
## Environment. ##
Packit 437b5e
## ------------ ##
Packit 437b5e
Packit 437b5e
LUA_PATH  ?= ;
Packit 437b5e
LUA_CPATH ?= ;
Packit 437b5e
Packit 437b5e
SPECL_ENV =
Packit 437b5e
CHECK_ENV =
Packit 437b5e
INSTALLCHECK_ENV =
Packit 437b5e
Packit 437b5e
Packit 437b5e
## ---------- ##
Packit 437b5e
## Bootstrap. ##
Packit 437b5e
## ---------- ##
Packit 437b5e
Packit 437b5e
ACLOCAL_AMFLAGS = -I m4
Packit 437b5e
Packit 437b5e
AM_CPPFLAGS = $(LUA_INCLUDE)
Packit 437b5e
Packit 437b5e
Packit 437b5e
## ------------- ##
Packit 437b5e
## Declarations. ##
Packit 437b5e
## ------------- ##
Packit 437b5e
Packit 437b5e
EXTRA_DIST		=
Packit 437b5e
EXTRA_LTLIBRARIES	=
Packit 437b5e
CLEANFILES		=
Packit 437b5e
DISTCLEANFILES		=
Packit 437b5e
MAINTAINERCLEANFILES	=
Packit 437b5e
NOTHING_ELSE		=
Packit 437b5e
Packit 437b5e
bin_SCRIPTS		=
Packit 437b5e
check_local		=
Packit 437b5e
dist_bin_SCRIPTS	=
Packit 437b5e
dist_lua_DATA		=
Packit 437b5e
doc_DATA		=
Packit 437b5e
installcheck_local	=
Packit 437b5e
install_exec_hooks	= remove-luaexec-lafiles
Packit 437b5e
uninstall_hooks		= uninstall-luaexec-modules
Packit 437b5e
lib_LTLIBRARIES		=
Packit 437b5e
luaexec_LTLIBRARIES	=
Packit 437b5e
man_MANS		=
Packit 437b5e
save_release_files	=
Packit 437b5e
Packit 437b5e
include local.mk
Packit 437b5e
include build-aux/rockspecs.mk
Packit 437b5e
Packit 437b5e
Packit 437b5e
## ------------ ##
Packit 437b5e
## Local Tests. ##
Packit 437b5e
## ------------ ##
Packit 437b5e
Packit 437b5e
check-local: $(check_local)
Packit 437b5e
Packit 437b5e
Packit 437b5e
## ------------- ##
Packit 437b5e
## Installation. ##
Packit 437b5e
## ------------- ##
Packit 437b5e
Packit 437b5e
installcheck-local: $(installcheck_local)
Packit 437b5e
Packit 437b5e
install-exec-hook: $(install_exec_hooks)
Packit 437b5e
Packit 437b5e
# Neither Lua itself, nor LuaRocks can use .la files, and LuaRocks
Packit 437b5e
# actually moves such files aside anyway, so we just remove them from
Packit 437b5e
# the installation directory.
Packit 437b5e
remove-luaexec-lafiles:
Packit 437b5e
	@for la in $(luaexec_LTLIBRARIES); do		\
Packit 437b5e
	  f=`echo "$$la" |sed 's|^.*/||'`;		\
Packit 437b5e
	  echo rm -f $(DESTDIR)$(luaexecdir)/$$f;	\
Packit 437b5e
	  rm -f $(DESTDIR)$(luaexecdir)/$$f;		\
Packit 437b5e
	done
Packit 437b5e
Packit 437b5e
Packit 437b5e
## --------------- ##
Packit 437b5e
## Uninstallation. ##
Packit 437b5e
## --------------- ##
Packit 437b5e
Packit 437b5e
uninstall-hook: $(uninstall_hooks)
Packit 437b5e
Packit 437b5e
# We removed the .la files from luaexecdir, so the standard uninstall,
Packit 437b5e
# with libtool --mode=uninstall, can't find everything anymore.
Packit 437b5e
uninstall-luaexec-modules:
Packit 437b5e
	@for la in $(luaexec_LTLIBRARIES); do		\
Packit 437b5e
	  base=`echo "$$la"				\
Packit 437b5e
		|sed 's|^.*/\(.*\)\.la|\1|'`;		\
Packit 437b5e
	  echo rm -f $(DESTDIR)$(luaexecdir)/$$base.so;	\
Packit 437b5e
	  rm -f $(DESTDIR)$(luaexecdir)/$$base.so;	\
Packit 437b5e
	done