Make the main target more generic, to allow compilation of
[tatoo.git] / Remakefile.in
index 74fef80..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
@@ -132,3 +132,7 @@ clean:
                        ;;
        esac
        done
+
+distclean: clean
+       rm -rf config.status configure config.log autom4te.cache .remake Remakefile remake
+