]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
Makefile: Fix "make clean"
authorFam Zheng <famz@redhat.com>
Mon, 17 Mar 2014 01:35:22 +0000 (09:35 +0800)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 17 Mar 2014 11:50:19 +0000 (11:50 +0000)
commitf4b11eee2f562c23b3efc33b96ba4542c9ca81aa
tree5d5362b19e5fb4d9768e9c8d5a557770e509e1c1
parent6fffa26244737f8fd8641a21fee29bd6aa9fdff5
Makefile: Fix "make clean"

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: Fam Zheng <famz@redhat.com>
Message-id: 1395020122-4957-1-git-send-email-famz@redhat.com
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Makefile