From c58461cf6ea38f43cdaeae95bb9d8204651eaf70 Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Tue, 4 Jan 2022 00:48:33 +1100 Subject: [PATCH] include docs in dist --- Makefile | 9 ++++++++- howto.adoc => hourglass-guide.adoc | 0 2 files changed, 8 insertions(+), 1 deletion(-) rename howto.adoc => hourglass-guide.adoc (100%) diff --git a/Makefile b/Makefile index c6977ec..999f4c9 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ MAIN = command.lsp LSP = $(filter-out $(MAIN),$(wildcard *.lsp)) BIN = hourglass hourglass-web +DOCS = hourglass-guide.html hourglass-guide.pdf OTHER = setup.sh hourglass.conf VERSION = 0.1 @@ -13,8 +14,14 @@ hourglass-web: $(MAKE) -C manager mv manager/$@ $@ -hourglass-$(VERSION).tgz: $(BIN) $(OTHER) +hourglass-$(VERSION).tgz: $(BIN) $(OTHER) $(DOCS) tar czf $@ $^ +%.html: %.adoc + asciidoctor $< > $@ + +%.pdf: %.adoc + asciidoctor-pdf $< > $@ + clean: rm -f $(BIN) hourglass-$(VERSION).tgz diff --git a/howto.adoc b/hourglass-guide.adoc similarity index 100% rename from howto.adoc rename to hourglass-guide.adoc -- 2.39.2