From e13db9239786f0d8d4c670b26dd5fb97397e8b4e Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Thu, 2 Nov 2023 23:52:54 +0100 Subject: Setup. Provide installation procedure for Pandoc templates --- pandoc/Makefile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pandoc/Makefile (limited to 'pandoc/Makefile') 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 $@ -- cgit v1.2.3