fix(Makefile): ensure `pkg` target rebuilds status client

Otherwise `make pkg` would deploy already built status client,
regardless of its initial configuration.

`make clean` is not required before `make pkg` anymore.

fixes: #6241
This commit is contained in:
Patryk Osmaczko 2022-06-27 20:49:49 +02:00 committed by osmaczko
parent a9b2459d79
commit 0bfc51d4a9
1 changed files with 5 additions and 1 deletions

View File

@ -547,7 +547,11 @@ $(STATUS_CLIENT_7Z): $(STATUS_CLIENT_EXE)
echo -e $(BUILD_MSG) "7z" echo -e $(BUILD_MSG) "7z"
7z a $(STATUS_CLIENT_7Z) ./$(OUTPUT) 7z a $(STATUS_CLIENT_7Z) ./$(OUTPUT)
pkg: $(PKG_TARGET) # pkg target rebuilds status client
# this is to ensure production version of the app is deployed
pkg:
rm $(NIM_STATUS_CLIENT) | :
$(MAKE) $(PKG_TARGET)
pkg-linux: check-pkg-target-linux $(STATUS_CLIENT_APPIMAGE) pkg-linux: check-pkg-target-linux $(STATUS_CLIENT_APPIMAGE)