Fix GMS guard
RM-232
Change-Id: I68a360a15ed31461f1defdfe3e2e88d74cc0897a
diff --git a/config/common.mk b/config/common.mk
index 310b95d..283e154 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -78,7 +78,7 @@
vendor/cm/CHANGELOG.mkdn:system/etc/CHANGELOG-CM.txt
# Backup Tool
-ifneq ($(WITH_GMS),true)
+ifneq (,$(filter true, $(CYNGN_TARGET) $(EXTERNAL_CLEAN_TARGET)))
PRODUCT_COPY_FILES += \
vendor/cm/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \
vendor/cm/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \