Make the main target more generic, to allow compilation of
[tatoo.git] / Remakefile.in
index eecc365..d173e83 100644 (file)
@@ -18,7 +18,7 @@ configure config.status: configure.in
        autoconf
        ./config.status --recheck
 
-src/%.native:
+%.native:
        base=${1%.native}
        src=${base}.ml
        obj=${base}.cmx
@@ -28,7 +28,7 @@ src/%.native:
        OBJS=$(@OCAMLDEP@ $OCAMLDEPNATIVE $OCAMLFINDFLAGS -modules $SRCS | tools/osort.sh cmx)
        @OCAMLOPT@ -o "$1"  @OCAMLFLAGS@ @OCAMLOPTFLAGS@ $OCAMLFINDLINKFLAGS $OCAMLFINDFLAGS $OBJS
 
-src/%.byte:
+%.byte:
        base=${1%.byte}
        src=${base}.ml
        obj=${base}.cmo