Skip to content

Commit 8545d0b

Browse files
authored
Update Makefile
1 parent d25875b commit 8545d0b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
PROTOCCMD = protoc
22
POETRY_PATH = $(shell which poetry)
33

4+
.PHONY: install_dev
45
install_dev:
56
$(POETRY_PATH) config virtualenvs.create false
67
$(POETRY_PATH) lock
78
$(POETRY_PATH) install --with=dev
89

10+
.PHONY: install
911
install:
1012
$(POETRY_PATH) lock
1113
$(POETRY_PATH) install
@@ -17,8 +19,10 @@ src/stealthimfilestorage/proto/filestorage_pb2.py src/stealthimfilestorage/proto
1719
@sed -i 's/import filestorage_pb2/from . import filestorage_pb2/g' ./src/stealthimfilestorage/proto/filestorage_grpc.py
1820
cp ./src/stealthimfilestorage/proto ./src/stimfstool/proto -r
1921

22+
.PHONY: proto
2023
proto: src/stealthimfilestorage/proto/filestorage_pb2.py src/stealthimfilestorage/proto/filestorage_grpc.py
2124

25+
.PHONY: build
2226
build: proto
2327
poetry build
2428

@@ -29,8 +33,10 @@ build: proto
2933
zstd ./bin/StealthIMFileStorage.docker -19
3034
@rm ./bin/StealthIMFileStorage.docker
3135

36+
.PHONY: build_docker
3237
build_docker: ./bin/StealthIMFileStorage.docker.zst
3338

39+
.PHONY: clean
3440
clean:
3541
@rm -rf ./src/stealthimfilestorage/proto
3642
@rm -rf ./bin

0 commit comments

Comments
 (0)