Create directories using make file

前端 未结 9 2085
情深已故
情深已故 2020-11-28 21:27

I\'m a very new to makefiles and i want to create directories using makefile. My project directory is like this

+--Project  
   +--output  
   +--source  
           


        
9条回答
  •  北荒
    北荒 (楼主)
    2020-11-28 22:29

    Or, KISS.

    DIRS=build build/bins
    
    ... 
    
    $(shell mkdir -p $(DIRS))
    

    This will create all the directories after the Makefile is parsed.

提交回复
热议问题