I am finally getting around to converting our makefiles to NANT .build files, and I've run across an "issue." In our makefiles, we frequently (VERY frequently, in fact) use a templated makefile that has macros defined at the top of the makefile, and targets whose names contain macros. A good example would be:
ASSEMBLYNAME=MyAssembly SRC=AssemblyInfo.cs MyFile.cs MyOtherFile.cs $(CSC)=csc . . . all: bin\$(ASSEMBLYNAME).dll bin\$(ASSEMBLYNAME).dll: $(CSC) <yada yada yada> /out:bin\$(ASSEMBLYNAME).dll $(SRC) This allows us to use the same template for may projects, changing only the top two lines. I'd like to use the same trick with NANT: <project name="MyAssembly" default="Debug"> <property name="build.basedir" value="bin" /> <target name="Debug" depends="${nant.project.name}.Debug" /> <target name="Release" depends="${nant.project.name}.Release" /> <target name="setup"> <mkdir dir="${build.dir}" /> </target> <target name="${nant.project.name}.Debug"> . . . <call target="${nant.project.name}" /> </target> <target name="${nant.project.name}"> . . . </target> </project> Unfortunately, NANT gripes about 'MyAssembly.Debug' being an unknown target. Is it possible to do this? -Andy Hopper ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users