Files
harbour-core/harbour/config/dos/install.cf
Viktor Szakats de8c2e9544 2009-06-10 20:10 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* doc/en-EN/Makefile
  * config/dos/global.cf
  * config/dos/install.cf
  * config/doc.cf
    ! Fixes to prev. Nothing is simple in the world of DOS.
      'copy' restored for general purpose to avoid idiotic 
      and unavoidable Microsoft xcopy message:
      "Does destination specify a file name or directory name on the target 
       (F = file, D = directory)?"
    * Using xcopy for install purposes only.
    * Change the way above idiotic message is avoided. Made the 
      hack local to Makefile. It doesn't work either way, but at 
      least it lets it run.

  * make_gnu.bat
    * Minor.
2009-06-10 18:13:53 +00:00

48 lines
1021 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
$(COMSPEC) /Cxcopy /Y /I $(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 =\
@sh -c 'if [ ! -d $(INSTALL_DIRSH) ]; \
then \
echo "! Cannot install, path not found: $(INSTALL_DIRSH)" 1>&2; \
else \
for i in $(INSTALL_OBJSH); \
do \
if [ -r $$i ]; \
then \
echo "! Installing $$i on $(INSTALL_DIRSH)"; \
$(CP) $$i $(INSTALL_DIRSH); \
else \
echo "! Cannot install $$i, not found" 1>&2; \
fi \
done \
fi'
endif
endif