Mercurial > hg > Members > kono > nitros9-code
view 3rdparty/packages/sierra/makefile @ 2758:e4a0f58a5f9b
Found that people who do not have the envirornment variable NITROS9DIR set before building the project get a error missing file "/rules.mak". Found this is caused do to the fact that the code to set this envirornment variable is in the rules.mak which can't get loaded.
To fix this the code needed to set the envirornment variable that is in the rules.mak is now in the makefile(s) right before the include for the rules.mak file. This should fix the problem for those who do not have the NITROS9DIR envirornment variable preset.
author | drencor-xeen |
---|---|
date | Mon, 14 Jan 2013 14:37:46 -0600 |
parents | 22b75f9788a5 |
children | 1addfd8c9d5f |
line wrap: on
line source
ifndef NITROS9DIR NITROS9DIR = $(HOME)/nitros9 endif include $(NITROS9DIR)/rules.mak dirs = blackcauldron christmas86 goldrush \ kingsquest1 kingsquest2 kingsquest3 kingsquest4 \ leisuresuitlarry manhunter1 manhunter2 \ policequest1 spacequest0 spacequest1 spacequest2 # Make all components all: @$(ECHO) "**************************************************" @$(ECHO) "* *" @$(ECHO) "* Sierra Adventure Games *" @$(ECHO) "* *" @$(ECHO) "**************************************************" $(foreach dir, $(dirs), ($(CD) $(dir); make);) # Clean all components clean: $(foreach dir, $(dirs), ($(CD) $(dir); make clean);) # Create dsk images dsk: $(foreach dir, $(dirs), ($(CD) $(dir); make dsk);) # Copy dsk images dskcopy: $(foreach dir, $(dirs), ($(CD) $(dir); make dskcopy);) # Clean dsk images dskclean: $(foreach dir, $(dirs), ($(CD) $(dir); make dskclean);) # Info info: @$(foreach dir, $(dirs), ($(CD) $(dir); make info; $(ECHO));)