From 2c52bba0f1367fd516f25202f7d8aafbf765416c Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Wed, 15 May 2024 13:48:30 +0200 Subject: Setup. Remove explicit templates from Pandoc Makefile --- pandoc/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pandoc/Makefile') 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 -- cgit v1.2.3