Pull Request #42 Defer execution of shell command

The following error occurs when `tfw` is installed from
a tarball:

```
fatal: Not a git repository (or any of the parent directories): .git

```

This ensures the failing command is only executed when the variable is
referenced.

```
% cat <<'EOF' >Makefile
FOO = $(shell foo)

.PHONY: bar
bar:
@echo "not using foo"

.PHONY: baz
baz:
@echo using FOO: $(FOO)
EOF

% make bar
not using foo

% make baz
make: foo: Command not found
using FOO:
```

Joep van Delft avatar Joep van Delft

Pull request event #215 passed

  • Ran for
  • New branch build
AMD64
no language set
Git

There was an error while trying to fetch the log.