Files
harbour-core/harbour/config/os2/install.cf
Przemyslaw Czerpak 49c3039329 2007-03-05 14:00 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/config/os2/install.cf
    * workaround for command line size limitation borrowed from xHarbour
2007-03-05 13:05:12 +00:00

37 lines
702 B
CFEngine3

#
# $Id$
#
ifeq ($(SHLVL),) # An OS/2 command shell
define inst_file
ECHO $(CP) $(file) $(INSTALL_OS2_DIR) >> _NSTALL.CMD
endef
INSTALL_LIST = $(subst /,\,$(INSTALL_OBJS))
INSTALL_OS2_DIR = $(subst /,\,$(INSTALL_DIR))
INSTALL_RULE = $(foreach file, $(INSTALL_LIST), $(inst_file)) \
$(COMSPEC) /c _NSTALL.CMD & $(RM) _NSTALL.CMD
else # bash
INSTALL_RULE =\
@if [ ! -d $(INSTALL_DIR) ]; \
then \
echo "! Can't install, path not found:" $(INSTALL_DIR); \
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"; \
fi \
done \
fi
endif