Skip to content

Commit e08f089

Browse files
feat: improve Makefile targets to run docker
1 parent d1bacb0 commit e08f089

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

fisopfs/Makefile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,18 @@ LDLIBS := $(shell pkg-config fuse --cflags --libs)
88
# Name for the filesystem!
99
FS_NAME := fisopfs
1010

11-
all: build
11+
all: $(FS_NAME)
1212

13-
build: $(FS_NAME)
14-
1513
format: .clang-files .clang-format
1614
xargs -r clang-format -i <$<
1715

18-
docker-build:
16+
build:
1917
./dock build
2018

21-
docker-run:
19+
run:
2220
./dock run
2321

24-
docker-exec:
22+
exec:
2523
./dock exec
2624

2725
clean:

fisopfs/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ $ sudo umount prueba
6565

6666
Existen tres _targets_ en el archivo `Makefile` para utilizar _docker_.
6767

68-
- `docker-build`: genera la imagen basada en "Ubuntu 20.04" con las dependencias de FUSE
69-
- `docker-run`: crea un _container_ basado en la imagen anterior ejecutando `bash`
68+
- `build`: genera la imagen con las dependencias de FUSE
69+
- `run`: crea un _container_ basado en la imagen anterior ejecutando `bash`
7070
- acá se puede ejecutar `make` y luego `./fisopfs -f ./prueba`
71-
- `docker-exec`: permite vincularse al mismo _container_ anterior para poder realizar pruebas
71+
- `exec`: permite vincularse al mismo _container_ anterior para poder realizar pruebas
7272
- acá se puede ingresar al directorio `prueba`
7373

7474
## Linter

0 commit comments

Comments
 (0)