aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile45
-rw-r--r--README.org4
2 files changed, 49 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d41aa35
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,45 @@
+PKG = mastodon
+
+CP = cp
+LN = ln
+
+EMACS = emacs
+MAKEINFO = makeinfo
+INSTALL-INFO = install-info
+ORG_DIR = $(word 1,$(wildcard $(HOME)/.emacs.d/elpa/org-9*))
+ORG_PATH = -L $(ORG_DIR)
+ORG_ARGS = --batch $(ORG_PATH) -l org -l ol-man
+ORG_EVAL1 = --funcall org-texinfo-export-to-texinfo
+ORG_EVAL2 = --funcall org-texinfo-export-to-info
+
+## ################################################################
+
+.PHONY: clean
+
+all: $(PKG).info dir
+
+clean:
+ rm -f $(PKG).org $(PKG).texi $(PKG).info dir
+
+## ################################################################
+
+# May look at this in the future
+#
+# %.info: %.texi
+# @printf "Generating $@\n"
+# $(MAKEINFO) --no-split $< -o $@
+#
+# %.texi: %.org
+# @printf "Generating $@\n"
+# $(EMACS) $(ORG_ARGS) $@ $(ORG_EVAL1)
+
+%.info: %.org
+ @printf "Generating $@\n"
+ $(EMACS) $(ORG_ARGS) $< $(ORG_EVAL2)
+
+dir: $(PKG).info
+ printf "Generating $@\n"
+ echo $^ | xargs -n 1 $(INSTALL-INFO) --dir=$@
+
+$(PKG).org: README.org
+ $(CP) $< $@
diff --git a/README.org b/README.org
index 4a9be3d..a1cbc4d 100644
--- a/README.org
+++ b/README.org
@@ -1,3 +1,7 @@
+#+TEXINFO_DIR_CATEGORY: Emacs
+#+TEXINFO_DIR_TITLE: Mastodon: (mastodon).
+#+TEXINFO_DIR_DESC: Client for Mastodon on ActivityPub networks.
+
@@html: <a href="https://melpa.org/#/mastodon"><img alt="MELPA" src="https://melpa.org/packages/mastodon-badge.svg"/></a>@@
@@html: <a href="https://ci.codeberg.org/martianh/mastodon.el"><img alt="Build Status" src="https://ci.codeberg.org/api/badges/martianh/mastodon.el/status.svg"></a>@@