Fix a bug in the Makefile
This commit is contained in:
parent
a4ab2590d7
commit
0ddd5d7b58
9
Makefile
9
Makefile
@ -1,15 +1,16 @@
|
|||||||
SOURCES = $(wildcard *.md)
|
SOURCES = $(wildcard *.md)
|
||||||
OUT = $(SOURCES:.md=.pdf)
|
OUT = $(SOURCES:.md=.pdf)
|
||||||
|
ASCIIMATH=filters/asciimath/pandoc-asciimath
|
||||||
|
|
||||||
HS_FILTERS_NAMES =
|
HS_FILTERS_NAMES =
|
||||||
PY_FILTERS_NAMES = pandoc-svg.py
|
PY_FILTERS_NAMES = pandoc-svg.py
|
||||||
EXT_FILTERS = asciimath/pandoc-asciimath
|
EXT_FILTERS = $(ASCIIMATH)
|
||||||
|
|
||||||
HS_FILTERS = $(addprefix filters/, $(HS_FILTERS_NAMES))
|
HS_FILTERS = $(addprefix filters/, $(HS_FILTERS_NAMES))
|
||||||
PY_FILTERS = $(addprefix filters/, $(PY_FILTERS_NAMES))
|
PY_FILTERS = $(addprefix filters/, $(PY_FILTERS_NAMES))
|
||||||
FILTERS = $(PY_FILTERS) $(HS_FILTERS) $(EXT_FILTERS)
|
FILTERS = $(PY_FILTERS) $(HS_FILTERS) $(EXT_FILTERS)
|
||||||
|
|
||||||
all: $(HS_FILTERS) asciimath/pandoc-asciimath $(OUT)
|
all: $(HS_FILTERS) $(ASCIIMATH) $(OUT)
|
||||||
|
|
||||||
.SUFFIXES: .md .pdf
|
.SUFFIXES: .md .pdf
|
||||||
|
|
||||||
@ -19,8 +20,8 @@ all: $(HS_FILTERS) asciimath/pandoc-asciimath $(OUT)
|
|||||||
$(HS_FILTERS):
|
$(HS_FILTERS):
|
||||||
ghc --make $@.hs -o $@
|
ghc --make $@.hs -o $@
|
||||||
|
|
||||||
asciimath/pandoc-asciimath:
|
$(ASCIIMATH):
|
||||||
(cd asciimath; make)
|
(cd filters/asciimath; make)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OUT)
|
rm -f $(OUT)
|
||||||
|
Loading…
Reference in New Issue
Block a user