diff options
author | Luke Bakken <[email protected]> | 2020-07-20 09:34:51 -0700 |
---|---|---|
committer | Luke Bakken <[email protected]> | 2020-07-20 09:34:51 -0700 |
commit | 06898f32c842ebe77586fb9e0e4848cdf68e5175 (patch) | |
tree | 303d192e604da9b1af8de29a2fd88547eff5cbf3 | |
parent | 764f9a25267aec343b245ced5bc054e87cc76938 (diff) | |
download | erlang.mk-06898f32c842ebe77586fb9e0e4848cdf68e5175.tar.gz erlang.mk-06898f32c842ebe77586fb9e0e4848cdf68e5175.tar.bz2 erlang.mk-06898f32c842ebe77586fb9e0e4848cdf68e5175.zip |
Fix `query-deps` for projects without deps
To reproduce:
```
git clone https://github.com/rabbitmq/inet_tcp_proxy.git
cd inet_tcp_proxy
$ make BRANCH=master QUERY='name fetch_method repo version absolute_path' query-deps
/bin/sh: /home/lbakken/development/rabbitmq/umbrella/deps/inet_tcp_proxy/.erlang.mk/recursive-tmp-deps-231462.log: No such file or directory
rm: cannot remove '/home/lbakken/development/rabbitmq/umbrella/deps/inet_tcp_proxy/.erlang.mk/recursive-tmp-deps-231462.log': No such file or directory
make: *** [erlang.mk:7642: /home/lbakken/development/rabbitmq/umbrella/deps/inet_tcp_proxy/.erlang.mk/recursive-deps-list.log] Error 1
```
-rw-r--r-- | core/deps-tools.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/deps-tools.mk b/core/deps-tools.mk index 2a632e4..262d045 100644 --- a/core/deps-tools.mk +++ b/core/deps-tools.mk @@ -63,6 +63,7 @@ $(ERLANG_MK_RECURSIVE_SHELL_DEPS_LIST): | $(ERLANG_MK_TMP) ifeq ($(IS_APP)$(IS_DEP),) $(verbose) rm -f $(ERLANG_MK_RECURSIVE_TMP_LIST) endif + $(verbose) touch $(ERLANG_MK_RECURSIVE_TMP_LIST) $(verbose) set -e; for dep in $^ ; do \ if ! grep -qs ^$$dep$$ $(ERLANG_MK_RECURSIVE_TMP_LIST); then \ echo $$dep >> $(ERLANG_MK_RECURSIVE_TMP_LIST); \ |