summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorelliott_c <ocielliottc@users.noreply.github.com>2003-07-07 17:32:14 +0000
committerelliott_c <ocielliottc@users.noreply.github.com>2003-07-07 17:32:14 +0000
commit784fe453b13e068e3ec273b9a0f4021ac5a51e96 (patch)
treec8b12e59e3532e2d5e6cc8ab7ef19788ccd4cd7c /bin
parentd519149594318e5062421a1b6004b37816216976 (diff)
downloadATCD-784fe453b13e068e3ec273b9a0f4021ac5a51e96.tar.gz
ChangeLogTag: Mon Jul 7 12:31:40 2003 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'bin')
-rw-r--r--bin/MakeProjectCreator/modules/MakeWorkspaceCreator.pm2
-rw-r--r--bin/MakeProjectCreator/templates/make.mpd12
2 files changed, 11 insertions, 3 deletions
diff --git a/bin/MakeProjectCreator/modules/MakeWorkspaceCreator.pm b/bin/MakeProjectCreator/modules/MakeWorkspaceCreator.pm
index 99675f875fc..42bd851bd23 100644
--- a/bin/MakeProjectCreator/modules/MakeWorkspaceCreator.pm
+++ b/bin/MakeProjectCreator/modules/MakeWorkspaceCreator.pm
@@ -69,7 +69,7 @@ sub write_comps {
## Print out the projet Makefile
print $fh $crlf .
- "all clean realclean:$crlf";
+ "all clean depend realclean:$crlf";
## If there is more than one project, use a for loop
if ($#list > 0) {
diff --git a/bin/MakeProjectCreator/templates/make.mpd b/bin/MakeProjectCreator/templates/make.mpd
index 179c0cfb8bd..d0eac06edec 100644
--- a/bin/MakeProjectCreator/templates/make.mpd
+++ b/bin/MakeProjectCreator/templates/make.mpd
@@ -7,6 +7,7 @@ CXX = <%cxx%>
<%endfor%>
CCC = $(CXX)
MAKEFILE = <%project_file%>
+DEPENDENCIES = .depend.<%project_file%>
<%if(exename)%>
BIN = <%exename%>
<%endif%>
@@ -148,8 +149,7 @@ INSTARGET = $(LIB)
<%endif%>
install:
@mkdir -p "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>"
- @$(RM) "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>/$(INSTARGET)"
- @ln -s "$(PWD)/$(INSTARGET)" "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>"
+ @[ -f "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>/$(INSTARGET)" ] || ln -s "$(PWD)/$(INSTARGET)" "<%if(dllout)%><%dllout%><%else%><%libout%><%endif%>"
<%endif%>
<%endif%>
clean:
@@ -164,4 +164,12 @@ realclean: clean
#----------------------------------------------------------------------------
# Dependencies
#----------------------------------------------------------------------------
+
+$(DEPENDENCIES):
+ touch $(DEPENDENCIES)
+
+depend:
+ perl <%depgen("$(ACE_ROOT)/bin/depgen.pl")%> -t gnu<%foreach(includes)%> -I<%include%><%endfor%><%foreach(macros)%> -D<%macro%><%endfor%><%if(pch_header)%><%foreach(pch_defines)%> -D<%pch_define%><%endfor%><%endif%> -f $(DEPENDENCIES)<%foreach(source_files)%> <%source_file%><%endfor%>
+
+include $(DEPENDENCIES)
<%marker(bottom)%>