From 16c1d512c91cd91d0f3a81cc451a7add636370e0 Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 29 Dec 2023 02:49:19 +0100 Subject: Tweaked style of the makefile --- Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 06e5dfa..4ea4d71 100644 --- a/Makefile +++ b/Makefile @@ -1,22 +1,22 @@ -LUAVERSION?=5.4 +LUA_VERSION?=5.4 PREFIX?=/usr/local BINDIR=$(PREFIX)/bin LIBDIR=$(PREFIX)/lib DATADIR=$(PREFIX)/share -LUADIR=$(DATADIR)/lua/$(LUAVERSION) +LUA_LMOD=$(DATADIR)/lua/$(LUA_VERSION) all: @echo Nothing to be built install: - install -m644 -Dt $(DESTDIR)$(LUADIR) activity.lua - install -m644 -Dt $(DESTDIR)$(LUADIR)/activity activity/*.lua - install -m644 -Dt $(DESTDIR)$(LUADIR)/activity/formats activity/formats/*.lua - install -m655 -Dt $(DESTDIR)$(BINDIR) generate.lua + install -m644 -Dt $(DESTDIR)$(LUA_LMOD) activity.lua + install -m644 -Dt $(DESTDIR)$(LUA_LMOD)/activity activity/*.lua + install -m644 -Dt $(DESTDIR)$(LUA_LMOD)/activity/formats activity/formats/*.lua + install -m755 -Dt $(DESTDIR)$(BINDIR) generate.lua uninstall: - rm -f $(DESTDIR)$(LUADIR)/activity.lua - rm -rf $(DESTDIR)$(LUADIR)/activity + rm -f $(DESTDIR)$(LUA_LMOD)/activity.lua + rm -rf $(DESTDIR)$(LUA_LMOD)/activity rm -f $(DESTIR)$(BINDIR)/generate.lua test: -- cgit v1.1