Files
harbour-core/harbour/config/wce/install.cf
Viktor Szakats ea90ff81f0 2009-03-31 12:03 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
+ config/wce
  + config/wce/dir.cf
  + config/wce/global.cf
  + config/wce/install.cf
  + config/wce/msvcarm.cf
  + config/wce/mingwarm.cf
  + config/wce/poccarm.cf
    + Added new arch for WinCE: wce
      These will now live in parallel with old win/*ce targets
      until they are fully functional. We can also back up from
      here in case this new method turns out to be a dead end
      for any reason. The upgrade path is:
      win/msvcce  -> wce/msvcarm
      win/mingwce -> wce/mingwarm
      win/poccce  -> wce/poccarm
      The idea is that this way we may continue adding support
      for non-ARM WinCE platforms, if needed. It also makes it
      easier to do things globally for wce platform only.
2009-03-31 10:06:15 +00:00

54 lines
1.1 KiB
CFEngine3

#
# $Id$
#
ifeq ($(INSTALL_OBJS),) # Empty install list
INSTALL_RULE = @echo Done
else
ifeq ($(SHLVL),) # command.com or cmd.exe
INSTALL_LIST = $(subst /,\,$(INSTALL_OBJS))
ifeq ($(CMD_EXE),yes)
# cmd.exe no command line size limit
INSTALL_RULE = \
-$(COMSPEC) /c for %f in ($(INSTALL_LIST)) do copy %f $(subst /,\,$(INSTALL_DIR))
else
# 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_RULE = \
$(foreach file, $(INSTALL_LIST), $(inst_file))
endif
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); \
true; \
else \
echo "! Can't install $$i, not found" 1>&2; \
fi \
done \
fi
endif
endif # Empty install list