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