aboutsummaryrefslogtreecommitdiffstats
path: root/pandoc/Makefile
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@fripost.org>2024-05-15 13:48:30 +0200
committerGustav Eek <gustav.eek@fripost.org>2024-05-15 13:48:30 +0200
commit2c52bba0f1367fd516f25202f7d8aafbf765416c (patch)
treecb8311a8f3e39e6d598dfac7eb01e667bacd97d3 /pandoc/Makefile
parent097133e5d07f2a60c46c2aa62f18e130dad9b665 (diff)
Setup. Remove explicit templates from Pandoc Makefile
Diffstat (limited to 'pandoc/Makefile')
-rw-r--r--pandoc/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/pandoc/Makefile b/pandoc/Makefile
index 73859cf..c40b967 100644
--- a/pandoc/Makefile
+++ b/pandoc/Makefile
@@ -1,5 +1,7 @@
.PHONY: all install uninstall
+TMPLS := $(basename $(wildcard *.latex))
+
all:
@echo Noting to do
@@ -11,14 +13,14 @@ else
DST = $(HOME)/.local/share/pandoc/templates
endif
-install: $(DST)/fripost-minutes.latex
+install: $(addprefix $(DST)/, $(addsuffix .latex, $(TMPLS)))
$(DST)/%: %
mkdir -p $(dir $@)
cat < $< > $@
uninstall:
- rm -fr $(DST)/fripost-minutes.latex
+ rm -fr $(addprefix $(DST)/, $(addsuffix .latex, $(TMPLS)))
rmdir --ignore-fail-on-non-empty -p $(DST)
# Test