summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 29f04cd..9263a97 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,22 @@
+LUA_VERSION=5.4
DESTDIR=
PREFIX=/usr/local
PREFIX_EXEC=$(PREFIX)
BINDIR=$(PREFIX_EXEC)/bin
+DATADIR=$(PREFIX)/share
+LUA_LMOD=$(DATADIR)/lua/$(LUA_VERSION)
all:
@echo nothing to do
install:
+ install -m755 -DT generate-atom.lua $(DESTDIR)$(BINDIR)/generate-atom
install -m755 -DT generate-index.lua $(DESTDIR)$(BINDIR)/generate-index
+ install -m644 -Dt $(DESTDIR)$(LUA_LMOD)/huh huh/*.lua
uninstall:
+ rm -f $(DESTDIR)$(BINDIR)/generate-atom
rm -f $(DESTDIR)$(BINDIR)/generate-index
+ rm -rf $(DESTDIR)$(LUA_LMOD)/huh
.PHONY: all install uninstall