# OTT mirror
# Copyright (C) 2022 Balthasar Szczepański
# "makefile" is automatically generated from "makefile.1.mak"
-# 29.09.2022
+# 04.12.2022
# This file is part of OTT mirror.
#
$(MKDIR) -p $(DIR)
$(CHMOD) g-r,g-w,g-x,o-r,o-w,o-x $(HIDDEN_DIR)
+ifdef BIN_PATH
cp_bin: $(BIN) setuid | mktree
$(RM) -rf $(BIN_PATH)/*
$(CP) -p $(BIN) $(BIN_PATH)
+endif
cp_conf: ottmirror.conf
$(CP) ottmirror.conf $(CONF)
cp_cron: ottmirror.cron
$(SUDO) $(CP) ottmirror.cron $(CRON)
+ifdef WWW_SRC_PATH
cp_src: $(SRC) | mktree
$(RM) -rf $(WWW_SRC_PATH)/*
$(CP) -r $(SRC) $(WWW_SRC_PATH)
+endif
cp_www: | mktree
$(CP) -r www/ott/* $(WWW_PATH)
# OTT mirror
# Copyright (C) 2022 Balthasar Szczepański
# "makefile" is automatically generated from "makefile.1.mak"
-# 29.09.2022
+# 04.12.2022
# This file is part of OTT mirror.
#
###MAKE_PERL: PERL = perl
###MAKE_MKDIR: MKDIR = mkdir
-###MAKE_CP: CP = rm
+###MAKE_CP: CP = cp
###MAKE_RM: RM = rm
###MAKE_CHMOD: CHMOD = chmod
###MAKE_SUDO: SUDO = sudo
$(MKDIR) -p $(DIR)
$(CHMOD) g-r,g-w,g-x,o-r,o-w,o-x $(HIDDEN_DIR)
+ifdef BIN_PATH
cp_bin: $(BIN) setuid | mktree
$(RM) -rf $(BIN_PATH)/*
$(CP) -p $(BIN) $(BIN_PATH)
+endif
cp_conf: ottmirror.conf
$(CP) ottmirror.conf $(CONF)
cp_cron: ottmirror.cron
$(SUDO) $(CP) ottmirror.cron $(CRON)
+ifdef WWW_SRC_PATH
cp_src: $(SRC) | mktree
$(RM) -rf $(WWW_SRC_PATH)/*
$(CP) -r $(SRC) $(WWW_SRC_PATH)
+endif
cp_www: | mktree
$(CP) -r www/ott/* $(WWW_PATH)