contrib/objcwrapper makefile: add dependency to the bin/header_static rule
authorAlexis Laferrière <alexis.laf@xymus.net>
Wed, 26 Aug 2015 20:12:13 +0000 (16:12 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Thu, 27 Aug 2015 19:26:49 +0000 (15:26 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/objcwrapper/Makefile

index 1f1021a..4fcfa3b 100644 (file)
@@ -1,4 +1,4 @@
-all: bin/objcwrapper
+all: bin/objcwrapper bin/header_static
 
 ../nitcc/src/nitcc:
        make -C ../nitcc
@@ -23,7 +23,7 @@ check: bin/objc_test_parser bin/objcwrapper
        ../../bin/nitpick tests/MyClass.nit
 
 # Test on classes of libgnustep-base-dev
-check-gnustep: bin/objcwrapper
+check-gnustep: bin/objcwrapper bin/header_static
        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
@@ -31,7 +31,7 @@ check-gnustep: bin/objcwrapper
        ../../bin/nitpick tests/nsarray.nit
 
 # Test on classes of the Apple Foundation framework
-check-apple: bin/objcwrapper
+check-apple: bin/objcwrapper bin/header_static
        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
@@ -44,5 +44,5 @@ check-apple: bin/objcwrapper
        bin/objcwrapper tests/NSAlert.pre.h -o tests/nsalert.nit
        ../../bin/nitpick tests/nsalert.nit
 
-bin/header_static:
+bin/header_static: $(shell ../../bin/nitls -M src/header_static.nit)
        ../../bin/nitc --dir bin src/header_static.nit