prerequisite ignored when running 'make' (alone)

2017-05-09 Thread Federico Bruni
Hi all Please consider the following example: ### Makefile ### all: doc dependencies = $(shell find docs -type f) doc: $(dependencies) echo "Something has changed in the docs/ directory!" ### end ### It looks up the files in the docs/ directory and executes the doc target if any f

Re: prerequisite ignored when running 'make' (alone)

2017-05-09 Thread Federico Bruni
Il giorno mar 9 mag 2017 alle 14:29, Paul Smith ha scritto: On Tue, 2017-05-09 at 14:06 +0200, Federico Bruni wrote: ### Makefile ### all: doc dependencies = $(shell find docs -type f) doc: $(dependencies) echo "Something has changed in the docs/ directory!"

No rule to make target

2018-03-29 Thread Federico Bruni
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 V

Re: No rule to make target

2018-03-29 Thread Federico Bruni
d)" Il giorno gio 29 mar 2018 alle 10:01, Bert Wesarg <"bert.wesarg"@googlemail.com> ha scritto: Dear Frederico, I just read (again) this: http://make.mad-scientist.net/papers/how-not-to-use-vpath/ you should do this too. Best, Bert On Thu, Mar 29, 2018 at 9:2

Re: No rule to make target

2018-03-29 Thread Federico Bruni
Il giorno gio 29 mar 2018 alle 15:56, Paul Smith 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

Re: No rule to make target

2018-03-29 Thread Federico Bruni
Il giorno gio 29 mar 2018 alle 18:18, th...@vmware.com ha scritto: Federico Bruni writes: > > > Il giorno gio 29 mar 2018 alle 15:56, Paul Smith ha > scritto: > > On Thu, 2018-03-29 at 14:09 +0200, Federico Bruni wrote: > >> VPATH = \ > >>