From 0ddd5d7b5828e3ee59ce36f30ef034b86e22d415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Tue, 12 Apr 2016 12:51:16 +0200 Subject: [PATCH] Fix a bug in the Makefile --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index cb52c1c..be5f167 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,16 @@ SOURCES = $(wildcard *.md) OUT = $(SOURCES:.md=.pdf) +ASCIIMATH=filters/asciimath/pandoc-asciimath HS_FILTERS_NAMES = PY_FILTERS_NAMES = pandoc-svg.py -EXT_FILTERS = asciimath/pandoc-asciimath +EXT_FILTERS = $(ASCIIMATH) HS_FILTERS = $(addprefix filters/, $(HS_FILTERS_NAMES)) PY_FILTERS = $(addprefix filters/, $(PY_FILTERS_NAMES)) FILTERS = $(PY_FILTERS) $(HS_FILTERS) $(EXT_FILTERS) -all: $(HS_FILTERS) asciimath/pandoc-asciimath $(OUT) +all: $(HS_FILTERS) $(ASCIIMATH) $(OUT) .SUFFIXES: .md .pdf @@ -19,8 +20,8 @@ all: $(HS_FILTERS) asciimath/pandoc-asciimath $(OUT) $(HS_FILTERS): ghc --make $@.hs -o $@ -asciimath/pandoc-asciimath: - (cd asciimath; make) +$(ASCIIMATH): + (cd filters/asciimath; make) clean: rm -f $(OUT)