Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit e948322d authored by Adnan Begovic's avatar Adnan Begovic Committed by Michael Bestas
Browse files

build: Make sure to check for variable definition during execution.

TICKET: RM-232
Change-Id: Ic5b3850a81b959b05a218cd967dcec71c15a4cd5
parent 54944974
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -189,9 +189,9 @@ $(built_aar) : $(full_classes_jar) $(full_android_manifest)
	# Note: Use "cp -n" to honor the resource overlay rules, if multiple res dirs exist.
	$(hide) $(foreach res,$(PRIVATE_RESOURCE_DIR),cp -Rfn $(res)/* $(dir $@)aar/res;)
	$(hide) cp $(PRIVATE_R_TXT) $(dir $@)aar/R.txt
ifneq ($(PRIVATE_CONSUMER_PROGUARD_FILE),)
	$(hide) cp $(PRIVATE_CONSUMER_PROGUARD_FILE) $(dir $@)aar/proguard.txt
endif
	$(hide) if [ ! -z "$(PRIVATE_CONSUMER_PROGUARD_FILE)" ]; then \
                        echo "Including '$(PRIVATE_CONSUMER_PROGUARD_FILE)'"; \
			$(hide) cp $(PRIVATE_CONSUMER_PROGUARD_FILE) $(dir $@)aar/proguard.txt; fi
	$(hide) jar -cMf $@ \
	  -C $(dir $@)aar .