* harbour/source/compiler/harbour.y
* use HB_COMP_PARAM macro in expression destructor instead of
direct accessing hb_comp_data global variable to make compiler
code MT safe
+ harbour/source/compiler/harbour.yyc
+ harbour/source/compiler/harbour.yyh
+ harbour/source/macro/macro.yyc
+ harbour/source/macro/macro.yyh
+ added generated by bison 2.3 grammar parsers for compiler and
macro compiler
* harbour/config/dos/global.cf
* harbour/config/dos/install.cf
* harbour/config/w32/global.cf
* changed CP definition for COMMAND.COM so it can work as standalone
command and added DIRSEP macro
* harbour/config/c.cf
+ added support for HB_REBUILD_PARSER=no environment variable.
When it's set then during build process grammars parsers
will not be generated from grammar definitions files (.y)
but instead the predefined ones (.yyc) used.
Tested and works well in Linux and DOS
* harbour/makefile.bc
+ added support for HB_REBUILD_PARSER=no environment variable.
Not tested. It's even possible that I've just broken the BCC
compilation with this modification. Please check it and fix
me if necessary.
48 lines
982 B
CFEngine3
48 lines
982 B
CFEngine3
#
|
|
# $Id$
|
|
#
|
|
|
|
ifeq ($(INSTALL_OBJS),) # Empty install list
|
|
|
|
INSTALL_RULE = @echo Done
|
|
|
|
else
|
|
|
|
ifeq ($(SHLVL),) # COMMAND.COM
|
|
|
|
# We have to use script to overcome the DOS limit of max 128 characters
|
|
# NOTE: The empty line directly before 'endef' HAVE TO exist!
|
|
# It causes that every commands will be separated by LF
|
|
define inst_file
|
|
$(CP) $(file) $(subst /,\,$(INSTALL_DIR))
|
|
|
|
endef
|
|
|
|
INSTALL_LIST = $(subst /,\,$(INSTALL_OBJS))
|
|
INSTALL_RULE = $(foreach file, $(INSTALL_LIST), $(inst_file))
|
|
|
|
else # bash
|
|
|
|
INSTALL_DIRSH = $(subst \,/,$(INSTALL_DIR))
|
|
INSTALL_OBJSH = $(subst \,/,$(INSTALL_OBJS))
|
|
INSTALL_RULE =\
|
|
@if [ ! -d $(INSTALL_DIRSH) ]; \
|
|
then \
|
|
echo "! Can't install, path not found:" $(INSTALL_DIRSH); \
|
|
else \
|
|
for i in $(INSTALL_OBJSH); \
|
|
do \
|
|
if [ -r $$i ]; \
|
|
then \
|
|
echo "! Installing $$i on $(INSTALL_DIRSH)"; \
|
|
$(CP) $$i $(INSTALL_DIRSH); \
|
|
else \
|
|
echo "! Can't install $$i, not found"; \
|
|
fi \
|
|
done \
|
|
fi
|
|
|
|
endif
|
|
|
|
endif
|