Il giorno gio 29 mar 2018 alle 15:56, Paul Smith <psm...@gnu.org> ha
scritto:
On Thu, 2018-03-29 at 14:09 +0200, Federico Bruni wrote:
VPATH = \
$CURDIR/src
This is wrong. This expands the make variable $C and appends the
string "URDIR/src". Since C is not set (most likely) you'll get:
VPATH = URDIR/src
which doesn't exist, so this is a no-op.
You meant:
VPATH = $(CURDIR)/src
Yes, indeed, it's an oversight.
However, this does not solve my problem.
I guess I'll have to try again after studying the Make manual, if I
find some spare time.
So far I managed to make it work only in current directory:
[maketest]$ tree .
.
|-- Makefile
|-- bar.md
|-- bar.pdf
|-- foo.md
`-- foo.pdf
0 directories, 5 files
[maketest]$
[maketest]$ cat Makefile
.PHONY: all book test
all: book
%.pdf: %.md
pandoc -f markdown -o $@ $<;
# Find the PDF files to be built
book: $(addsuffix .pdf, $(notdir $(basename $(wildcard *.md))))
# Check target list
test:
echo "$(addsuffix .pdf, $(notdir $(basename $(wildcard *.md))))"
_______________________________________________
Help-make mailing list
Help-make@gnu.org
https://lists.gnu.org/mailman/listinfo/help-make