Makefile: add destructivepurge action for cleaning up a development machine

Sometimes gradle and friends get themselves stuck with cached
configuration. This provides an action that takes a sometimes more
effective route to eradicating those problems.
raggi/destructivepurege
James Tucker 9 months ago
parent ba3f5f1d1a
commit 3bb6d7d199
No known key found for this signature in database

@ -168,4 +168,13 @@ clean:
-rm -rf android/build $(DEBUG_APK) $(RELEASE_AAB) $(AAR) tailscale-fdroid.apk
-pkill -f gradle
.PHONY: all clean install android/lib $(DEBUG_APK) $(RELEASE_AAB) $(AAR) release bump_version dockershell
# destructivepurge removes all downloaded Android SDK packages, gradle caches,
# build artifacts and other bits that might influence build behavior, ~everything
# except Android Studio.
destructivepurge: clean
-git clean -fdx
-if [ -d $(ANDROID_HOME) ]; then rm -rf $(ANDROID_HOME); fi
-if [ -d $(HOME)/.gradle ]; then rm -rf $(HOME)/.gradle; fi
-rm -rf $(HOME)/.cache/tailscale-android*
.PHONY: all clean destructivepurge install android/lib $(DEBUG_APK) $(RELEASE_AAB) $(AAR) release bump_version dockershell

Loading…
Cancel
Save