From 98da191bae8572814f993f8f3ca35e7492b56ac9 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Wed, 6 May 2026 22:11:36 +0100 Subject: add "make dist" target --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 9d89000..6c6af8a 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,8 @@ # To avoid issues when updating, consider providing the new values on the # make(1) command line instead of editing this file. +VERSION= 1.1 + PREFIX?= /usr/local DESTDIR?= @@ -70,9 +72,15 @@ default: all all: ${MAN5} ${MAN7} ${MAN8} ${LIB} ${BIN} ${CMD} ${CHALLENGE} ${HOOK} ${PERIODIC} ${CONF} +dist: + tar cf lfacme-${VERSION}.tar $$(git ls-tree -r --name-only HEAD) + compress -f lfacme-${VERSION}.tar + @ls -l lfacme-${VERSION}.tar.Z + clean: rm -f ${MAN5} ${MAN7} ${MAN8} ${LIB} ${BIN} ${CMD} rm -f ${HOOK} ${CHALLENGE} ${PERIODIC} ${CONF} + rm -f lfacme-${VERSION}.tar lfacme-${VERSION}.tar.Z .sh.in.sh: ${REPLACE} <$< >$@ -- cgit v1.3