-
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
The last line of the Makefile will ofter get ignored when converting.
Step-by-step on how to replicate:
pip install make-to-batch==0.2.3- Create a
Makefilecontaining:
build:
docker-compose up --build
up:
docker-compose upThis will generate a make.bat file with the following:
@echo off
IF /I "%1"=="build" GOTO build
IF /I "%1"=="up" GOTO up
GOTO error
:build
docker-compose up --build
GOTO :EOF
:up
GOTO :EOF
:error
IF "%1"=="" (
ECHO make: *** No targets specified and no makefile found. Stop.
) ELSE (
ECHO make: *** No rule to make target '%1%'. Stop.
)
GOTO :EOF
Where the up command is empty.
- Alter the
Makefileto have a newline below the last command, and themake.batfile is generated properly.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels