Commit cbab3b90 authored by Guillaume Huard's avatar Guillaume Huard
Browse files

Small bugfix related to debug and compilation

parent 589107d1
...@@ -13,7 +13,7 @@ search() { ...@@ -13,7 +13,7 @@ search() {
} }
end() { end() {
if [ -n "$REMOVE" -o -n "$GENERATED_FILES" ] if [ $(expr "$-" : '.*x') -eq 0 -a -n "$REMOVE$GENERATED_FILES" ]
then then
rm -r $REMOVE $GENERATED_FILES rm -r $REMOVE $GENERATED_FILES
fi fi
...@@ -28,10 +28,10 @@ fi ...@@ -28,10 +28,10 @@ fi
for file in $FILES for file in $FILES
do do
base=$(basename $file .c) base=$(basename $file .c)
$CC -c $file || end $? $CC $CFLAGS -c $file || end $?
GENERATED_FILES="$GENERATED_FILES $base.o" GENERATED_FILES="$GENERATED_FILES $base.o"
done done
$CC $CFLAGS $GENERATED_FILES $LDLIBS -o $NAME || end $? $CC $GENERATED_FILES $LDLIBS -o $NAME || end $?
end 0 end 0
}; };
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment