aboutsummaryrefslogtreecommitdiffstats
path: root/pandoc
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@fripost.org>2023-11-02 23:52:54 +0100
committerGustav Eek <gustav.eek@fripost.org>2023-11-04 20:50:10 +0100
commite13db9239786f0d8d4c670b26dd5fb97397e8b4e (patch)
tree01b20c2167e38fc72ba0768c04bbfd66ba2d8184 /pandoc
parentf5e091505ce0f0e3ffb8ee7f2110d841cdcc5a48 (diff)
Setup. Provide installation procedure for Pandoc templates
Diffstat (limited to 'pandoc')
-rw-r--r--pandoc/Makefile32
-rw-r--r--pandoc/README19
2 files changed, 51 insertions, 0 deletions
diff --git a/pandoc/Makefile b/pandoc/Makefile
new file mode 100644
index 0000000..914849f
--- /dev/null
+++ b/pandoc/Makefile
@@ -0,0 +1,32 @@
+.PHONY: all install uninstall
+
+all:
+ @echo Noting to do
+
+# Install
+
+ifdef XDG_DATA_HOME
+DST = $(XDG_DATA_HOME)/pandoc/templates
+else
+DST = $(HOME)/.local/share/pandoc/templates
+endif
+
+install: $(DST)/fripost-minutes.latex
+
+$(DST)/%: %
+ mkdir -p $(dir $@)
+ cat < $< > $@
+
+uninstall:
+ rm -fr $(DST)/fripost-minutes.latex
+ rmdir --ignore-fail-on-non-empty -p $(DST)
+
+# Test
+
+test:
+ make -C tests $@
+
+# Clean
+
+clean:
+ make -C tests $@
diff --git a/pandoc/README b/pandoc/README
new file mode 100644
index 0000000..17dedcc
--- /dev/null
+++ b/pandoc/README
@@ -0,0 +1,19 @@
+% Pandoc templates for Fripost
+
+These templates contains regular `\usepackage{}` statements for all
+Fripost specific. Tests and examples in this directory are Pandoc
+specific only. Make sure to install the Fripost LaTeX package
+according to instructions.
+
+# Installation
+
+Use GNU Make:
+
+ make install
+
+# Run test
+
+Similarly:
+
+ make test
+