Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eric Duminil
casanova-online
Commits
9ab56cc9
Commit
9ab56cc9
authored
May 12, 2026
by
Eric Duminil
Browse files
Adding makefile
parent
e78b6ed4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
0 → 100644
View file @
9ab56cc9
#######################################################################
# Main targets #
#######################################################################
## CASAnova on Wine in Docker
help
:
##
Show this help.
@
egrep
-h
'(\s##\s|^##\s)'
$(MAKEFILE_LIST)
| egrep
-v
'^--'
|
awk
'BEGIN {FS = ":.*?## "}; {printf "\033[32m %-35s\033[0m %s\n", $$1, $$2}'
setup
:
##
Install CASAnova into ./config/wine (run once on the host).
@
echo
"
${green}
Installing CASAnova...
${no_color}
"
bash install.sh
build
:
##
Build the Docker image.
@
echo
"
${green}
Building image...
${no_color}
"
docker compose build
up
:
##
Start the container.
@
echo
"
${green}
Starting container...
${no_color}
"
docker compose up
--detach
down
:
##
Stop and remove the container.
@
echo
"
${green}
Stopping container...
${no_color}
"
docker compose down
status
:
##
Show current container status.
@
docker compose ps
--all
|
\
sed
"s/
\b\(
exited
\)\b
/
${orange}
\U\1\E
${no_color}
/gi"
|
\
sed
"s/
\b\(
up
\)\b
/
${green}
\U\1\E
${no_color}
/gi"
|
\
sed
"s/
\b\(
healthy
\)\b
/
${green}
\U\1\E
${no_color}
/gi"
|
\
sed
"s/
\b\(
unhealthy
\)\b
/
${orange}
\U\1\E
${no_color}
/gi"
|
tee
/tmp/status
@
(
grep
-qi
"UP"
/tmp/status
&&
echo
"
${green}
UP!
${no_color}
"
)
||
echo
"
${red}
DOWN!
${no_color}
"
logs
:
##
Follow container logs.
@
echo
"
${green}
Showing logs...
${no_color}
"
docker compose logs
--follow
.PHONY
:
help setup build up down status logs
green
=
`
tput setaf 2
`
orange
=
`
tput setaf 9
`
red
=
`
tput setaf 1
`
no_color
=
`
tput sgr0
`
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment