]> git.eshelyaron.com Git - emacs.git/commitdiff
* cedet/ede/proj.el (project-compile-project): Fix filename test.
authorChong Yidong <cyd@stupidchicken.com>
Thu, 8 Oct 2009 22:13:42 +0000 (22:13 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Thu, 8 Oct 2009 22:13:42 +0000 (22:13 +0000)
lisp/ChangeLog
lisp/cedet/ede/proj.el

index 97a9edb6458f1eec9eec0a3488236395c2ee9540..a1b1100a389a9626abe80dc3d684af0d8740fc50 100644 (file)
@@ -1,6 +1,7 @@
 2009-10-08  Chong Yidong  <cyd@stupidchicken.com>
 
-       * cedet/ede/proj.el (project-make-dist): Fix filename test.
+       * cedet/ede/proj.el (project-make-dist, project-compile-project):
+       Fix filename test.
        (ede-proj-dist-makefile): Use expand-file-name instead of concat
        to expand file names.
 
index 86496e239ee602d53e65a92079bc2558b9ef1d27..bf50fe63608e802204d16c5535587c0fc03a1832 100644 (file)
@@ -474,7 +474,9 @@ Argument COMMAND is the command to use when compiling."
   (let ((pm (ede-proj-dist-makefile proj))
        (default-directory (file-name-directory (oref proj file))))
     (ede-proj-setup-buildenvironment proj)
-    (if (string= pm "Makefile.am") (setq pm "Makefile"))
+    (if (string= (file-name-nondirectory pm) "Makefile.am")
+       (setq pm (expand-file-name "Makefile"
+                                  (file-name-directory pm))))
     (compile (concat ede-make-command" -f " pm " all"))))
 
 ;;; Target type specific compilations/debug