I have a makefile with something like the following targets:
install:
    do a whole bunch of stuff to install
dist: install
    cp README.txt $(INSTALL_DIR)
    zip $(INSTALL_DIR)
I am trying to not repeat the commands from target install and make dist execute install first before executing its own commands.
Calling make dist does indeed execute all commands from target install 开发者_开发问答but then just stops and it does not execute its own commands, e.g. the cp.
Am I missing something?
try to add this line in your makefile
.PHONY : install dist
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论