Fixed "make clean"

This commit is contained in:
Pierre Pronchery 2013-01-07 03:30:08 +01:00
parent 1c97708d44
commit 4358351fba

View File

@ -40,8 +40,12 @@ _usage()
#main
while getopts P: name; do
clean=0
while getopts "cP:" name; do
case "$name" in
c)
clean=1
;;
P)
#we can ignore it
;;
@ -57,6 +61,8 @@ if [ $# -ne 1 ]; then
exit $?
fi
[ "$clean" -ne 0 ] && exit 0
APPINTERFACE="$1"
APPINTERFACE="${APPINTERFACE##*/}"
APPINTERFACE="../data/${APPINTERFACE%%.h}.interface"