Skip to content
  • Fam Zheng's avatar
    f4b11eee
    Makefile: Fix "make clean" · f4b11eee
    Fam Zheng authored
    
    
    This fixes a dangerous bug: "make clean" after "make distclean" will
    delete every single file including those under .git, if you do in-tree
    build!
    
    Rationale: A first "make distclean" will unset $(DSOSUF), a following
    "make distclean" or "make clean" will find all the files and delete it.
    
    Fix it by explicitly typing the file extensions here, and combine
    multiple find invocations into one.
    
    Signed-off-by: default avatarFam Zheng <famz@redhat.com>
    Message-id: 1395020122-4957-1-git-send-email-famz@redhat.com
    Reviewed-by: default avatarStefan Weil <sw@weilnetz.de>
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    f4b11eee
    Makefile: Fix "make clean"
    Fam Zheng authored
    
    
    This fixes a dangerous bug: "make clean" after "make distclean" will
    delete every single file including those under .git, if you do in-tree
    build!
    
    Rationale: A first "make distclean" will unset $(DSOSUF), a following
    "make distclean" or "make clean" will find all the files and delete it.
    
    Fix it by explicitly typing the file extensions here, and combine
    multiple find invocations into one.
    
    Signed-off-by: default avatarFam Zheng <famz@redhat.com>
    Message-id: 1395020122-4957-1-git-send-email-famz@redhat.com
    Reviewed-by: default avatarStefan Weil <sw@weilnetz.de>
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Loading