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

Commit fe2cf3dd authored by Colin Cross's avatar Colin Cross Committed by android-build-merger
Browse files

Merge "Remove FORCE from gpl_source.tgz" am: 1c0112f5 am: d86e80e0

am: 311c3bb8

Change-Id: I333229a7b5faebfdc9e293c93b175628bc56d41b
parents a0e521ed 311c3bb8
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -12,20 +12,22 @@
# See the License for the specific language governing permissions and
# limitations under the License.

gpl_source_tgz := $(call intermediates-dir-for,PACKAGING,gpl_source,HOST,COMMON)/gpl_source.tgz
ifdef dist_goal

# The rule below doesn't have dependenices on the files that it copies,
# so manually generate directly into the DIST_DIR directory that is always
# wiped between dist builds.
gpl_source_tgz := $(DIST_DIR)/gpl_source.tgz

# FORCE since we can't know whether any of the sources changed
$(gpl_source_tgz): PRIVATE_PATHS := $(sort $(patsubst %/, %, $(dir $(ALL_GPL_MODULE_LICENSE_FILES))))
$(gpl_source_tgz) : $(ALL_GPL_MODULE_LICENSE_FILES) FORCE
$(gpl_source_tgz) : $(ALL_GPL_MODULE_LICENSE_FILES)
	@echo Package gpl sources: $@
	@rm -rf $(dir $@) && mkdir -p $(dir $@)
	$(hide) tar cfz $@ --exclude ".git*" $(PRIVATE_PATHS)


.PHONY: gpl_source_tgz
gpl_source_tgz : $(gpl_source_tgz)

# Dist the tgz only if we are doing a full build
ifeq (,$(TARGET_BUILD_APPS))
$(call dist-for-goals, droidcore, $(gpl_source_tgz))
droidcore: $(gpl_source_tgz)
endif

endif # dist_goal