projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
[fw/sdcc]
/
sim
/
ucsim
/
cmd.src
/
Makefile.in
diff --git
a/sim/ucsim/cmd.src/Makefile.in
b/sim/ucsim/cmd.src/Makefile.in
index c026f015b3096eb5368c4de772f1ea18daf0531b..eaca51968b50736a88de21c5db0a7e1bf3b6d1a4 100644
(file)
--- a/
sim/ucsim/cmd.src/Makefile.in
+++ b/
sim/ucsim/cmd.src/Makefile.in
@@
-43,6
+43,7
@@
OBJECTS = cmdset.o command.o newcmd.o cmdutil.o syntax.o \
cmduc.o cmdstat.o cmdmem.o \
cmdpars.o cmdlex.o
cmduc.o cmdstat.o cmdmem.o \
cmdpars.o cmdlex.o
+DEVEL = $(shell ( bash -c "test -e $(PRJDIR)/devel && echo yes" ))
# Compiling entire program or any subproject
# ------------------------------------------
# Compiling entire program or any subproject
# ------------------------------------------
@@
-90,7
+91,9
@@
include clean.mk
cmdpars.cc: cmdpars.y
cmdpars.cc: cmdpars.y
-cmdlex.cc: cmdlex.l cmdpars.h
+ifeq ($(DEVEL),yes)
+ cmdlex.cc: cmdlex.l cmdpars.h
+endif
# My rules
# --------
# My rules
# --------
@@
-114,9
+117,11
@@
$(PRJDIR)/libcmd.a: $(OBJECTS)
rm -f $*.cc $*.h
$(BISON_PLUS_PLUS) -d -o $*.cc $<
rm -f $*.cc $*.h
$(BISON_PLUS_PLUS) -d -o $*.cc $<
+ifeq ($(DEVEL),yes)
.l.cc:
rm -f $*.cc
$(LEX) --c++ -o $*.cc $<
.l.cc:
rm -f $*.cc
$(LEX) --c++ -o $*.cc $<
+endif
# Remaking configuration
# Remaking configuration