Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Example of Makefiles in Windows
root = true
end_of_line = lf
insert_final_newline = true
indent_size = 2
indent_style = space
indent_style = tab
end_of_line = crlf
@echo off
set CONTAINER=mycontainer
if /i "%1"=="install" goto install
if /i "%1"=="i" goto install
if /i "%1"=="stop" goto stop
if /i "%1"=="s" goto stop
goto install
start /wait /B docker-compose up -d
start /wait /B docker exec %CONTAINER% composer install
start /wait /B docker exec %CONTAINER% npm install
goto :eof
start /wait /B docker-compose down -v
goto :eof
i install:
docker-compose up -d
docker exec $(CONTAINER) composer install
docker exec $(CONTAINER) npm install
s stop:
docker-compose down -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment