[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
No rule to make target
From: |
Federico Bruni |
Subject: |
No rule to make target |
Date: |
Thu, 29 Mar 2018 09:21:47 +0200 |
Hi
I'm having problem with a simple Makefile which uses a pattern rule to
generate PDF files from markdown files.
What I'm doing wrong?
[makefile-tests]$ tree .
.
|-- Makefile
|-- out
`-- src
|-- bar.md
`-- foo.md
2 directories, 3 files
[makefile-tests]$
[makefile-tests]$ cat Makefile
VPATH = \
$CURDIR/src \
$CURDIR/out
all: book
%.pdf: %.md
pandoc -f markdown -o $(CURDIR)/out/$@ $(CURDIR)/src/$<;
# Find the PDF files to be built
book: $(addsuffix .pdf, $(notdir $(basename $(wildcard src/*.md))))
# Check target list
test:
echo "$(addsuffix .pdf, $(notdir $(basename $(wildcard src/*.md))))"
[makefile-tests]$
[makefile-tests]$ make
make: *** No rule to make target 'bar.pdf', needed by 'book'. Stop.
[makefile-tests]$
- No rule to make target,
Federico Bruni <=
- Re: No rule to make target, Bert Wesarg, 2018/03/29
- Re: No rule to make target, Federico Bruni, 2018/03/29
- Re: No rule to make target, Paul Smith, 2018/03/29
- Re: No rule to make target, Federico Bruni, 2018/03/29
- Re: No rule to make target, thutt, 2018/03/29
- Re: No rule to make target, Federico Bruni, 2018/03/29
- Re: No rule to make target, thutt, 2018/03/29