通过调试返回该文件不存在

时间:2019-03-18 11:59:14

标签: makefile

在调试模式下运行make时,我遇到File does not exist.的问题:

GNU Make 3.81

This program built for i386-apple-darwin11.3.0
Reading makefiles...
Updating goal targets....
 File `compose/up' does not exist.
Must remake target `compose/up'.
docker network create --subnet= workbench || true
Error response from daemon: network with name workbench already exists
docker-compose -f docker-compose.yml up -d
Successfully remade target file `compose/up'.`enter code here`

看看我的Makefile

SHELL := /bin/sh

.DEFAULT_GOAL := compose/up
.PHONY: compose/up

compose/up:
    docker network create --subnet=${DOCKER_NETWORK_SUBNET} workbench || true
    docker-compose -f docker-compose.yml up -d $(service)

make配置中缺少什么?

0 个答案:

没有答案