25 lines
503 B
CFEngine3
25 lines
503 B
CFEngine3
#
|
|
# $Id$
|
|
#
|
|
|
|
install:: first
|
|
ifeq ($(SHLVL),)
|
|
@cmd /c FOR %f IN ($(INSTALL_OBJS)) DO @COPY %f $(INSTALL_DIR)
|
|
else # ! Windows
|
|
@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 # ! Windows
|