Skip to content
Snippets Groups Projects
Select Git revision
  • 6975e0c4d465eb6ebfc747aefa7dd787a1f503a8
  • master default protected
  • 1.31
  • 4.38.8
  • 4.38.7
  • 4.38.6
  • 4.38.5
  • 4.38.4
  • 4.38.3
  • 4.38.2
  • 4.38.1
  • 4.38.0
  • 4.37.2
  • 4.37.1
  • 4.37.0
  • 4.36.0
  • 4.35.0
  • 4.34.1
  • 4.34.0
  • 4.33.1
  • 4.33.0
  • 4.32.2
  • 4.32.1
23 results

directories-go-utilities.mk

Blame
  • target-init-go-utilities.mk 1.91 KiB
    #############################################################################################
    #############################################################################################
    ##
    ## INIT-STANDARD
    ##
    #############################################################################################
    #############################################################################################
    
    # @see .PHONY https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html#Phony-Targets
    .PHONY: init-go-utilities 
    
    # The default directories are defined in the 
    # directories-standard.mk file, but all other 
    # targets can define directories as well.
    
    $(PROJECT_DIRECTORIES):
    	$(foreach path,$(PROJECT_DIRECTORIES), $(shell $(MKDIR) -p $(path)))
    
    ## init go utilities project	
    init-go-utilities: $(PROJECT_DIRECTORIES) $(PROJECT_ROOT).gitignore $(PROJECT_ROOT)README.md  $(LICENSE_PATH)LICENSE
    	$(ECHOMARKER) "Run init-go-utilities"
    	$(ECHO) "Done"
    
    #############################################################################################
    #############################################################################################
    ##
    ## LICENSE
    ##
    #############################################################################################
    #############################################################################################
    
    export LICENSE_FILE_CONTENT
    $(LICENSE_PATH)LICENSE:
    	$(QUIET) $(ECHO) "$$LICENSE_FILE_CONTENT" >> $@
    
    #############################################################################################
    #############################################################################################
    ##
    ## README
    ##
    #############################################################################################
    #############################################################################################
    
    export README_FILE_CONTENT
    $(PROJECT_ROOT)README.md:
    	$(QUIET) $(ECHO) "$$README_FILE_CONTENT" >> $@