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 file is changed.
If I run 'make doc', it behaves as expected.
If I run 'make', the target is executed every time, even if no file changed in docs/.

I guess I'm doing something stupid here, but I cannot figure it out.

Thanks in advance
Federico




_______________________________________________
Help-make mailing list
Help-make@gnu.org
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to