benchs/markdown: fix location of nitc
authorJean Privat <jean@pryen.org>
Fri, 3 Apr 2015 05:30:46 +0000 (12:30 +0700)
committerJean Privat <jean@pryen.org>
Fri, 3 Apr 2015 05:39:09 +0000 (12:39 +0700)
do not assume $PATH and make it modifiable

Signed-off-by: Jean Privat <jean@pryen.org>

benchmarks/markdown/benches/Makefile
benchmarks/markdown/engines/nitmd/Makefile

index 641c47e..4cb8c36 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+NITC=../../../bin/nitc
+
 all: out
 
 gen_benches:
-       nitc gen_benches.nit
+       $(NITC) gen_benches.nit
 
 out: gen_benches
        ./gen_benches ./plain.md -o ./out
index 6424382..256ddfe 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+NITC=../../../../bin/nitc
+
 all: nitmd nitmd-o
 
 nitmd:
-       nitc nitmd.nit
+       $(NITC) nitmd.nit
 
 nitmd-o:
-       nitc --semi-global nitmd.nit -o $@
+       $(NITC) --semi-global nitmd.nit -o $@
 
 test: all
        ./nitmd ../../benches/hello.md 5