- base="$include/$module"
- if test -z "$include"; then continue; fi
- if test -f "$base".ml -o -f "$base".mly -o -f "$base".mll -o -f "$base".pack; then
- echo -n "$base"."$ext "
+ if test -z "$include"; then continue; fi
+ base="${include}/${module}"
+ if test \( "$INTER" = "1" \) -a \( -f "$base".mli \) ; then
+ ## if we want to depend only on cmi of a module
+ /bin/echo -n "${base}"."cmi "
+ elif test -f "$base".ml -o -f "$base".mly -o -f "$base".mll -o -f "$base".pack -o -f "$base".ml.str; then
+ ## else we depend on the implementation
+ /bin/echo -n "${base}"."${ext} "