aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@fripost.org>2023-11-02 23:52:54 +0100
committerGustav Eek <gustav.eek@fripost.org>2023-11-04 20:50:10 +0100
commite13db9239786f0d8d4c670b26dd5fb97397e8b4e (patch)
tree01b20c2167e38fc72ba0768c04bbfd66ba2d8184 /Makefile
parentf5e091505ce0f0e3ffb8ee7f2110d841cdcc5a48 (diff)
Setup. Provide installation procedure for Pandoc templates
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ce3a1fa..e6dff0b 100644
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,7 @@ tmp.sty: $(addprefix tex/, $(addsuffix .sty, $(SRC)))
test:
make -C $@ clean
make -C $@
+ make -C pandoc $@
# Compilation for installation
@@ -44,17 +45,20 @@ DST_PDF := $(TEXMF)/doc
install: \
$(addprefix $(DST_STY)/, $(STY)) \
$(addprefix $(DST_PDF)/, $(PDF))
- texhash $(TEXMF)
+ make -C pandoc $@
$(DST_STY)/%.sty: %.sty
mkdir -p $(dir $@)
cp $< $@
+ texhash $(TEXMF)
$(DST_PDF)/%.pdf: %.pdf
mkdir -p $(dir $@)
cp $< $@
+ texhash $(TEXMF)
uninstall:
+ make -C pandoc $@
rm -f $(DST_STY)/* $(DST_PDF)/$(PKG).pdf
texhash $(TEXMF)
rmdir --ignore-fail-on-non-empty -p $(DST_STY) $(DST_PDF)
@@ -62,7 +66,8 @@ uninstall:
# Clean
clean:
- make -C test clean
+ make -C pandoc $@
+ make -C test $@
rm -f tmp.sty
rm -f *.aux *.hd *.log *.out
rm -f *.dtx *.ins *.pdf *.sty