aboutsummaryrefslogtreecommitdiffstats
path: root/pandoc/Makefile
diff options
context:
space:
mode:
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