* config/os2/dir.cf
* use $(COMSPEC) instead of calling cmd.exe directly
* config/os2/gcc.cf
* rewrote create_library rule to work with make -jn without
breaking shell environment/command line size.
* source/rtl/hbproces.c
* included sys/waith.h in OS/2 build. I think that initial
#defines can be simplified a bit.
* config/os2/install.cf
* rewrote install_rule to work with make -jn without
breaking shell environment/command line size.
* config/lib.cf
* removed unnecessary double quotes around TOP definition
36 lines
679 B
CFEngine3
36 lines
679 B
CFEngine3
#
|
|
# $Id$
|
|
#
|
|
|
|
ifeq ($(SHLVL),) # An OS/2 command shell
|
|
|
|
define inst_file
|
|
$(COMSPEC) /C $(CP) $(file) $(INSTALL_OS2_DIR)
|
|
|
|
endef
|
|
|
|
INSTALL_LIST = $(subst /,\,$(INSTALL_OBJS))
|
|
INSTALL_OS2_DIR = $(subst /,\,$(INSTALL_DIR))
|
|
INSTALL_RULE = $(foreach file, $(INSTALL_LIST), $(inst_file))
|
|
|
|
else # bash
|
|
|
|
INSTALL_RULE =\
|
|
@if [ ! -d $(INSTALL_DIR) ]; \
|
|
then \
|
|
echo "! Can't install, path not found: $(INSTALL_DIR)" 1>&2; \
|
|
else \
|
|
for i in $(INSTALL_OBJS); \
|
|
do \
|
|
if [ -r $$i ]; \
|
|
then \
|
|
echo "! Installing $$i on $(INSTALL_DIR)"; \
|
|
$(CP) $$i $(INSTALL_DIR); \
|
|
else \
|
|
echo "! Can't install $$i, not found" 1>&2; \
|
|
fi \
|
|
done \
|
|
fi
|
|
|
|
endif
|