pass EMHOME on to nested make
This commit is contained in:
parent
1487265556
commit
19897803d4
2 changed files with 4 additions and 4 deletions
|
@ -52,7 +52,7 @@ NEXTFILES = def.H type.H node.H scope.C tmpvar.C casestat.C
|
||||||
#EXCLEXCLEXCLEXCL
|
#EXCLEXCLEXCLEXCL
|
||||||
|
|
||||||
all: Cfiles
|
all: Cfiles
|
||||||
sh -c 'if $(CC) nmclash.c > /dev/null 2>&1 ; then make $(CURRDIR)/main ; else sh Resolve main ; fi'
|
sh -c 'if $(CC) nmclash.c > /dev/null 2>&1 ; then make "EMHOME="$(EMHOME) $(CURRDIR)/main ; else EMHOME=$(EMHOME); export EMHOME; sh Resolve main ; fi'
|
||||||
@rm -f nmclash.o a.out
|
@rm -f nmclash.o a.out
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
|
@ -77,7 +77,7 @@ clean:
|
||||||
(cd .. ; rm -rf Xsrc)
|
(cd .. ; rm -rf Xsrc)
|
||||||
|
|
||||||
lint: Cfiles
|
lint: Cfiles
|
||||||
sh -c 'if $(CC) nmclash.c > /dev/null 2>&1 ; then make Xlint ; else sh Resolve Xlint ; fi'
|
sh -c 'if $(CC) nmclash.c > /dev/null 2>&1 ; then make "EMHOME="$(EMHOME) Xlint ; else EMHOME=$(EMHOME); export EMHOME; sh Resolve Xlint ; fi'
|
||||||
@rm -f nmclash.o a.out
|
@rm -f nmclash.o a.out
|
||||||
|
|
||||||
longnames: $(SRC) $(HFILES)
|
longnames: $(SRC) $(HFILES)
|
||||||
|
|
|
@ -23,7 +23,7 @@ then
|
||||||
:
|
:
|
||||||
else mkdir ../Xsrc
|
else mkdir ../Xsrc
|
||||||
fi
|
fi
|
||||||
make longnames
|
make EMHOME=$EMHOME longnames
|
||||||
: remove code generating routines from the clashes list as they are defines.
|
: remove code generating routines from the clashes list as they are defines.
|
||||||
: code generating routine names start with C_
|
: code generating routine names start with C_
|
||||||
sed '/^C_/d' < longnames > tmp$$
|
sed '/^C_/d' < longnames > tmp$$
|
||||||
|
@ -51,4 +51,4 @@ $i: clashes $PW/$i
|
||||||
\$(CID) -Fclashes < $PW/$i > $i
|
\$(CID) -Fclashes < $PW/$i > $i
|
||||||
EOF
|
EOF
|
||||||
done
|
done
|
||||||
make CURRDIR=$currdir $target
|
make EMHOME=$EMHOME CURRDIR=$currdir $target
|
||||||
|
|
Loading…
Reference in a new issue