From 84d611c78ac65113ed8cc7838994669de270d4d0 Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 3 Sep 2024 21:35:27 +0200 Subject: Sketched generate-atom to generate RSS/Atom feeds along with index --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') 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 -- cgit v1.1