summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-09-03 21:35:27 +0200
committerAki <please@ignore.pl>2024-09-03 21:36:47 +0200
commit84d611c78ac65113ed8cc7838994669de270d4d0 (patch)
tree5832af26d8c4bfe0c48773e2dc69f3ecb1da52ef /Makefile
parented586b4fe54c9a3125cd7050f79a1b0d441644be (diff)
downloadhuh-master.zip
huh-master.tar.gz
huh-master.tar.bz2
Sketched generate-atom to generate RSS/Atom feeds along with indexHEADmaster
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