aboutsummaryrefslogtreecommitdiffstats
path: root/pandoc/Makefile
blob: 914849fff91bdfe8f8d0a488c63b6063dca92d44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 $@