]> git.eshelyaron.com Git - emacs.git/commitdiff
* cedet/ede/proj.el (project-make-dist): Fix filename test.
authorChong Yidong <cyd@stupidchicken.com>
Thu, 8 Oct 2009 22:08:49 +0000 (22:08 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Thu, 8 Oct 2009 22:08:49 +0000 (22:08 +0000)
(ede-proj-dist-makefile): Use expand-file-name instead of concat
to expand file names.

lisp/ChangeLog
lisp/cedet/ede/proj.el

index cd49df78e1d464e347200aa43c3075ad465f09ff..97a9edb6458f1eec9eec0a3488236395c2ee9540 100644 (file)
@@ -1,3 +1,9 @@
+2009-10-08  Chong Yidong  <cyd@stupidchicken.com>
+
+       * cedet/ede/proj.el (project-make-dist): Fix filename test.
+       (ede-proj-dist-makefile): Use expand-file-name instead of concat
+       to expand file names.
+
 2009-10-08  Michael Albinus  <michael.albinus@gmx.de>
 
        * net/tramp.el (tramp-file-name-real-user, tramp-file-name-domain)
index 25c41823ec523c29dda46b723d8bcd104cf6eb56..86496e239ee602d53e65a92079bc2558b9ef1d27 100644 (file)
@@ -456,9 +456,10 @@ FILE must be massaged by `ede-convert-path'."
             (not (y-or-n-p "Dist file already exists.  Rebuild? ")))
        (error "Try `ede-update-version' before making a distribution"))
     (ede-proj-setup-buildenvironment this)
-    (if (string= pm "Makefile.am") (setq pm "Makefile"))
-    (compile (concat ede-make-command " -f " pm " dist"))
-    ))
+    (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 " dist"))))
 
 (defmethod project-dist-files ((this ede-proj-project))
   "Return a list of files that constitutes a distribution of THIS project."
@@ -597,11 +598,11 @@ Converts all symbols into the objects to be used."
         (concat (file-name-directory (oref this file))
                 "Makefile.am"))
        ((eq (oref this makefile-type) 'Makefile.in)
-        (concat (file-name-directory (oref this file))
-                "Makefile.in"))
+        (expand-file-name "Makefile.in"
+                          (file-name-directory (oref this file))))
        ((object-assoc "Makefile" 'makefile (oref this targets))
-        (concat (file-name-directory (oref this file))
-                "Makefile"))
+        (expand-file-name "Makefile"
+                          (file-name-directory (oref this file))))
        (t
         (let ((targets (oref this targets)))
           (while (and targets
@@ -610,8 +611,8 @@ Converts all symbols into the objects to be used."
                             'ede-proj-target-makefile)))
             (setq targets (cdr targets)))
           (if targets (oref (car targets) makefile)
-            (concat (file-name-directory (oref this file))
-                    "Makefile"))))))
+            (expand-file-name "Makefile"
+                              (file-name-directory (oref this file))))))))
 
 (defun ede-proj-regenerate ()
   "Regenerate Makefiles for and edeproject project."