Skip to content
Snippets Groups Projects
Select Git revision
  • 31731b286d4a3a204982dca0e5b259761220777f
  • master default protected
  • 0.5.9
  • 0.5.8
  • 0.5.7
  • 0.5.6
  • 0.5.5
  • 0.5.4
  • 0.5.3
  • 0.5.2
  • 0.5.1
  • 0.5.0
  • 0.4.17
  • 0.4.16
  • 0.4.15
  • 0.4.14
  • 0.4.13
  • 0.4.12
  • 0.4.11
  • 0.4.10
  • 0.4.9
  • 0.4.8
22 results

target-update-makefiles.mk

Blame
  • Volker Schukai's avatar
    31731b28
    History
    target-update-makefiles.mk 1.10 KiB
    #############################################################################################
    #############################################################################################
    ##
    ## INIT-TARGETS
    ##
    #############################################################################################
    #############################################################################################
    
    ifeq ($(GIT),)
      $(error $(ERRORMARKER) Git is not defined, check your Makefile if git.mk is included)
    endif
    
    # @see .PHONY https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html#Phony-Targets
    .PHONY: update-makefiles
    
    ifeq ($(QUIET),)
      _COPYVERBOSE = -v
    endif
    
    ## update standard makefiles
    update-makefiles:
    	$(ECHOMARKER) "update standard makefiles"
    	$(QUIET) $(eval TEMPD := $(shell mktemp -d))
    	$(QUIET) $(GIT) clone --quiet --depth=1  https://gitlab.schukai.com/schukai/utilities/makefile.git/ "$(TEMPD)" 
    	$(QUIET) $(CP) -r $(_COPYVERBOSE) $(TEMPD)/makefiles/* $(MAKEFILE_IMPORT_PATH)
    	$(QUIET) $(CP) -r $(_COPYVERBOSE) $(TEMPD)/Makefile $(PROJECT_ROOT)Makefile.example
    	$(QUIET) $(RM) -rf $(TEMPD)