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
# ------------------------------------------
cmdpars.cc: cmdpars.y
-cmdlex.cc: cmdlex.l cmdpars.h
+ifeq ($(DEVEL),yes)
+ cmdlex.cc: cmdlex.l cmdpars.h
+endif
# My rules
# --------
rm -f $*.cc $*.h
$(BISON_PLUS_PLUS) -d -o $*.cc $<
+ifeq ($(DEVEL),yes)
.l.cc:
rm -f $*.cc
$(LEX) --c++ -o $*.cc $<
+endif
# Remaking configuration