From 8b6a4efbadb774ea33e01f04c4f899f049405f1f Mon Sep 17 00:00:00 2001
From: Alex Lin <alexander.s.lin@nasa.gov>
Date: Tue, 29 Sep 2015 09:27:11 -0500
Subject: [PATCH] library dependencies are lost

Removed a double dot ".." I introduced into file names.
---
 libexec/trick/make_makefile_src  | 2 +-
 libexec/trick/pm/get_lib_deps.pm | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libexec/trick/make_makefile_src b/libexec/trick/make_makefile_src
index 4c5b71a9..12a924c0 100755
--- a/libexec/trick/make_makefile_src
+++ b/libexec/trick/make_makefile_src
@@ -23,7 +23,7 @@ sub read_lib_deps($@) {
             next if ( $l =~ /^-|\.a$/ ) ;
             $non_lib_processed_files{$l} = 1 ;
             my ( $file, $dir, $suffix) = fileparse($l, qr/\.[^.]*/) ;
-            my ($lib_dep_file_name) = "build$dir${file}.${suffix}.lib_deps" ;
+            my ($lib_dep_file_name) = "build$dir${file}${suffix}.lib_deps" ;
             if ( -e $lib_dep_file_name ) {
                open FH, "$lib_dep_file_name" or die 'cannot open $lib_dep_file_name' ;
                my (@all_lines) = <FH> ;
diff --git a/libexec/trick/pm/get_lib_deps.pm b/libexec/trick/pm/get_lib_deps.pm
index 1a2441f4..05e7afef 100644
--- a/libexec/trick/pm/get_lib_deps.pm
+++ b/libexec/trick/pm/get_lib_deps.pm
@@ -136,7 +136,7 @@ sub write_lib_deps($) {
 
     # Build the library dependencies file name to store results
     my ( $file, $dir, $suffix) = fileparse($source_file_name, qr/\.[^.]*/) ;
-    my ($lib_dep_file_name) = "build$dir${file}.${suffix}.lib_deps" ;
+    my ($lib_dep_file_name) = "build$dir${file}${suffix}.lib_deps" ;
     if ( ! -e "build$dir" ) {
         make_path("build$dir") ;
     }