From 28f9d98558f0f34a5f3d73b6bfa7a3f30856a5c9 Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Mon, 24 Feb 2025 22:24:59 +0000 Subject: Add compat53 installation to GNUmakefile --- GNUmakefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index dade806d..46be0cc6 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -119,6 +119,16 @@ install: all install-config do \ $(INSTALL_DATA) "$$f" '$(DESTDIR)$(luadir)'/`echo $$f | sed 's,^src/,,'`; \ done +ifeq (,$(findstring $(LUA_VERSION),"5.3" "5.4")) + find src/compat53/ -type d | while read f; \ + do \ + mkdir -p '$(DESTDIR)$(luadir)'/`echo $$f | sed 's,^src/,,'`; \ + done + find src/compat53/ -type f -name '*.lua' | while read f; \ + do \ + $(INSTALL_DATA) "$$f" '$(DESTDIR)$(luadir)'/`echo $$f | sed 's,^src/,,'`; \ + done +endif install-config: mkdir -p '$(DESTDIR)$(luarocksconfdir)/' -- cgit v1.2.3-55-g6feb