@@ -26,13 +26,16 @@ HELP_FUN = \
2626 print "\n"; \
2727 }
2828
29- __toolversion = $(shell $( GIT_ROOT ) /scripts/toolversion $( 1 ) )
29+ export NIX_CONF_DIR = $(PWD ) /nix
3030
3131# Main targets
3232
3333clean : # #@prepare Remove all output folders
3434 git clean -dxf -f
3535
36+ clean-nix : # #@prepare Remove complete nix setup
37+ sudo rm -rf /nix ~ /.cache/nix
38+
3639setup : # #@prepare Install all the requirements for status-react
3740 @./scripts/setup
3841
@@ -47,11 +50,9 @@ ifndef IN_NIX_SHELL
4750 echo "Configuring Nix shell..."; \
4851 if ! command -v "nix" >/dev/null 2>&1; then \
4952 . ~/.nix-profile/etc/profile.d/nix.sh; \
50- NIX_CONF_DIR=$(PWD)/scripts/lib/setup/nix \
5153 nix-shell; \
5254 else \
53- NIX_CONF_DIR=$(PWD)/scripts/lib/setup/nix \
54- nix-shell; \
55+ nix-shell; \
5556 fi \
5657 else \
5758 echo "Please run 'make setup' first"; \
@@ -93,21 +94,13 @@ prod-build: _ensure-in-nix-shell
9394 lein prod-build
9495
9596prod-build-android : _ensure-in-nix-shell
96- rm ./modules/react-native-status/android/libs/status-im/status-go/local/status-go-local.aar 2> /dev/null || true
9797 scripts/prepare-for-platform.sh android
9898 lein prod-build-android
9999
100100prod-build-ios : _ensure-in-nix-shell
101- rm -r ./modules/react-native-status/ios/RCTStatus/Statusgo.framework/ 2> /dev/null || true
102101 scripts/prepare-for-platform.sh ios
103102 lein prod-build-ios
104103
105- full-prod-build : _ensure-in-nix-shell # #@build build prod for both Android and iOS
106- ./scripts/bundle-status-go.sh ios android
107- $(MAKE ) prod-build
108- rm -r ./modules/react-native-status/ios/RCTStatus/Statusgo.framework/ 2> /dev/null || true
109- rm ./modules/react-native-status/android/libs/status-im/status-go/local/status-go-local.aar 2> /dev/null
110-
111104prod-build-desktop : _ensure-in-nix-shell
112105 git clean -qdxf -f ./index.desktop.js desktop/
113106 scripts/prepare-for-platform.sh desktop
0 commit comments