all is not a shell command. You might try rom : RUNFROMFLASH=yes rom : all
ram : RUNFROMFLASH=no ram : all Not sure about this just my $0.02 > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Andrew Small > Sent: Tuesday, April 11, 2006 9:39 AM > To: [email protected] > Subject: Conditional build > > > I need to switch a build between for ROM and RAM. > At the moment, I have a line near the top of the file: > RUNFROMFLASH=yes > > and then: > ifeq ($(RUNFROMFLASH),yes) > # Run from Flash configuration files > PROGNAME = flashweb > NG_DEF += ,RTE_FLASH > OBJS += hwsetup.$(NGOEXT) sections.$(NGOEXT) > endif > > a sub-makefile also switches the linker sections between ROM > & RAM depending > on the value of RUNFROMFLASH. > > This is OK, but I'd rather it was streamlined so that the > makefile itself > did not need modifying to switch between build options. For example: > gmake -fshc.mk clean ; clean build. > gmake -fshc.mk ram ; build for ram. > gmake -fshc.mk ; build for rom. > gmake -fshc.mk rom ; build for rom (as above). > > > I tried prepending the .mk file with: > rom: > RUNFROMFLASH=yes > all > > ram: > RUNFROMFLASH=no > all > > all: > > but it fails on the third line " all" with: > C:>gmake -fshc.mk clean > shc.mk:3: *** missing separator. Stop. > > > > _______________________________________________ > Help-make mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/help-make > _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
