# Default installation target
default-install:
- SH_EXTRA_RUNDIRS="$(sort $(EXTRA_RUNDIRS))" SH_INSTALL_RUNDIRS="$(sort $(INSTALL_RUNDIRS))" SH_CONFIGS="$(sort $(CONFIGS))" $(s)/build/installer $(INSTALL_DIR)
+ SH_EXTRA_RUNDIRS="$(sort $(EXTRA_RUNDIRS))" SH_INSTALL_RUNDIRS="$(sort $(INSTALL_RUNDIRS))" SH_CONFIGS="$(sort $(CONFIGS))" SH_AUTO_CONFIRM="$(CONFIRM)" $(s)/build/installer $(INSTALL_DIR)
# Don't delete intermediate targets. There shouldn't be any, but due to bugs
# in GNU Make rules with targets in not-yet-existing directories are ignored
# Set to 1 if you want verbose output
V=0
+# Set to 'y' (or 'n') if you want to auto-confirm (auto-reject) all questions
+CONFIRM=
+
# Disable all built-in rules and variables. Speeds up make and simplifies debugging.
MAKEFLAGS+=-rR
echo "cf/$a: no differences"
else
echo -n "cf/$a differs, replace it [Yn]? "
- read x
+ if [ -z "$SH_AUTO_CONFIRM" ] ; then
+ read x
+ else
+ x="$SH_AUTO_CONFIRM"
+ echo "$x"
+ fi
if [ -z "$x" -o "$x" = "y" -o "$x" = "Y" ] ; then
echo "cf/$a: replacing and keeping the old version as cf/$a.old"
mv $DEST/cf/$a $DEST/cf/$a.old