contrib/objcwrapper makefile: use -o and nitls in the check rules
[nit.git] / contrib / objcwrapper / Makefile
index 3f39029..34257ab 100644 (file)
@@ -23,20 +23,20 @@ check: bin/objc_test_parser bin/objcwrapper
        ../../bin/nitpick tests/MyClass.nit
 
 # Test on classes of libgnustep-base-dev
-check-gnustep:
+check-gnustep: bin/objcwrapper
        gcc -E /usr/include/GNUstep/Foundation/NSArray.h -I /usr/include/GNUstep/ -Wno-deprecated \
        | ../header_keeper/bin/header_keeper /usr/include/GNUstep/Foundation/NSArray.h \
        | bin/header_static > tests/NSArray.pre.h
-       bin/objcwrapper tests/NSArray.pre.h
-       ../../bin/nitpick NSArray.nit
+       bin/objcwrapper tests/NSArray.pre.h -o tests/nsarray.nit
+       ../../bin/nitpick tests/nsarray.nit
 
 # Test on classes of the Apple Foundation framework
-check-apple:
+check-apple: bin/objcwrapper
        gcc -E /System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSArray.h \
        | ../header_keeper/bin/header_keeper /System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSArray.h \
        | bin/header_static > tests/NSArray.pre.h
-       bin/objcwrapper tests/NSArray.pre.h
-       ../../bin/nitpick NSArray.nit
+       bin/objcwrapper tests/NSArray.pre.h -o tests/nsarray.nit
+       ../../bin/nitpick tests/nsarray.nit
 
 bin/header_static:
        ../../bin/nitc --dir bin src/header_static.nit