   "Compile com.google.protobuf.*"
   [project]
   (let [proto-files (io/file "proto/google/protobuf")
-        target (:target-dir project)]
+        target (target project)]
     (.mkdirs proto-files)
     (io/copy (io/file target srcdir "src/google/protobuf/descriptor.proto")
              (io/file proto-files "descriptor.proto"))

  (java.net.URL.
   (format "http://protobuf.googlecode.com/files/protobuf-%s.zip"  version)))

(defn- proto-dependencies
  "look for lines starting with import in proto-file"
  [proto-file]

  [project]
  (when-not (installed?)
    (fetch project)
    (let [source (io/file (target project) srcdir)]
      (when-not (.exists (io/file source "src" "protoc"))
        (fs/chmod "+x" (io/file source "configure"))
        (fs/chmod "+x" (io/file source "install-sh"))
