ifeq ($(CONFIG_PCLOUD_CACHE),yes)
$(MAKE) -f Makefile.ffmpeg libcacheget
endif
- $(MAKE) -f Makefile.ffmpeg
+ $(MAKE) -f Makefile.ffmpeg build
# Static HDHOMERUN library
ifeq ($(CONFIG_PCLOUD_CACHE),yes)
$(MAKE) -f Makefile.hdhomerun libcacheget
endif
- $(MAKE) -f Makefile.hdhomerun
+ $(MAKE) -f Makefile.hdhomerun build
.PHONY: ffmpeg_rebuild
ffmpeg_rebuild:
.PHONY: build $(PHONY)
build: $(LIB_ROOT)/$(FFMPEG)/.tvh_build
+ $(call LIBCACHEGET_TIMESTAMP)
# ##############################################################################
.PHONY: build
build: $(LIB_ROOT)/$(LIBHDHR)/.tvh_build
+ $(call LIBCACHEGET_TIMESTAMP)
# ###########################################################################
# Build Rules
LIB_STATIC_STAMP := $(BUILDDIR)/$(LIB_NAME)_static_stamp
+define LIBCACHEGET_TIMESTAMP
+ @touch $(LIB_STATIC_STAMP)
+endef
+
# Download cache
.PHONY: libcacheget
libcacheget:
ifeq ($(PCLOUD_CACHE),yes)
- @( $(ROOTDIR)/support/lib.sh download $(LIB_NAME) &&\
- $(ROOTDIR)/support/lib.sh unpack $(LIB_NAME) ) || true
- @touch $(BUILDDIR)/$(LIB_NAME)_static_stamp
+ @if ! test -f $(LIB_STATIC_STAMP); then\
+ ( $(ROOTDIR)/support/lib.sh download $(LIB_NAME) &&\
+ $(ROOTDIR)/support/lib.sh unpack $(LIB_NAME) ) || true;\
+ touch $(LIB_STATIC_STAMP);\
+ fi
endif
# Download and Upload on demand