aboutsummaryrefslogtreecommitdiffstats
path: root/pandoc/Makefile
blob: 73859cfdceb993898f5c14428a7b2660832e2b19 (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
33
.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 $@
	rm -f *~