diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2009-05-22 11:08:01 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2009-05-22 11:08:01 (GMT) |
commit | a019396727caecaf125f043055160475d72e8268 (patch) | |
tree | b15979d08459986e6d255da8074d0798ae56540a /trunk/tmake/lib/win32 | |
parent | 7f0e124466e31066486a3fb6dae32432c2c1291d (diff) | |
download | Doxygen-Release_1_5_9_20090522.zip Doxygen-Release_1_5_9_20090522.tar.gz Doxygen-Release_1_5_9_20090522.tar.bz2 |
Release-1.5.9-20090522Release_1_5_9_20090522
Diffstat (limited to 'trunk/tmake/lib/win32')
-rwxr-xr-x | trunk/tmake/lib/win32/subdirs.t | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/trunk/tmake/lib/win32/subdirs.t b/trunk/tmake/lib/win32/subdirs.t new file mode 100755 index 0000000..4c857fd --- /dev/null +++ b/trunk/tmake/lib/win32/subdirs.t @@ -0,0 +1,54 @@ +############################################################################# +#! +#! This is a tmake template for creating a makefile that invokes make in +#! sub directories - for Win32. +#! +#${ + StdInit(); + $m = ""; + foreach ( split(/\s+/,$project{"SUBDIRS"}) ) { + $m = $m . "\tcd $_\n\tDOMAKE\n\t\@cd ..\n"; + } + $project{"SUBMAKE"} = $m; + Project('MAKEFILE') || Project('MAKEFILE = Makefile'); + Project('TMAKE') || Project('TMAKE = tmake'); +#$} +#! +# Makefile for building targets in sub directories. +# Generated by tmake at #$ Now(); +# Project: #$ Expand("PROJECT"); +# Template: #$ Expand("TEMPLATE"); +############################################################################# + +MAKEFILE= #$ Expand("MAKEFILE"); +TMAKE = #$ Expand("TMAKE"); + +SUBDIRS = #$ ExpandList("SUBDIRS"); + +all: $(SUBDIRS) + +#${ + foreach ( split(/\s+/,$project{"SUBDIRS"}) ) { + if ( Project("TMAKE_NOFORCE") ) { + $text = $text . $_ . ":\n\t" . + "cd $_\n\t\$(MAKE\)\n\t\@cd ..\n\n"; + } else { + $text = $text . $_ . ": FORCE\n\t" . + "cd $_\n\t\$(MAKE\)\n\t\@cd ..\n\n"; + } + } +#$} +#$ TmakeSelf(); + +tmake_all: +#${ + foreach ( split(/\s+/,$project{"SUBDIRS"}) ) { + $text .= "\tcd $_\n\t\$(TMAKE\) $_.pro -o \$(MAKEFILE)\n\t\@cd ..\n"; + } +#$} + +clean: +#$ $text = $project{"SUBMAKE"}; $text =~ s/DOMAKE/\$(MAKE\) clean/g; +#$ Project("TMAKE_NOFORCE") && DisableOutput(); +FORCE: +#$ Project("TMAKE_NOFORCE") && EnableOutput(); |