diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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: |