-[submodule "config"]
- path = config
- url = ../../botm/config
[submodule "exec"]
path = exec
url = ../../botm/exec
+++ /dev/null
-Subproject commit 352e86fd3d4afab9adb6c340d236f501f3d91560
# "makefile" is automatically generated from "makefile.1.mak"
#
-# Copyright (C) 2016, 2017, 2023, 2024 Balthasar Szczepański
+# Copyright (C) 2016, 2017, 2023, 2024, 2026 Balthasar Szczepański
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# make -B TARGET=target_name makefile
endif
PERL = perl
+CONFIGURE = botm-config
CC =/usr/bin/gcc
CF =-g -Wall
RM =/usr/bin/rm
SUDO =/usr/bin/sudo
+CONFIGURE = $(PERL) /botm/bin/config-1.3/configure.pl
+
BIN_PATH = /botm/bin/test-bsta
DATA_PATH = /botm/data/test-bsta
DATA_WORDS_PATH = /botm/data/test-bsta/words
DEFAULT_CONFIGFILE = settings-$(DEFAULT_TARGET).txt settings.txt
# The configuration tool
-CONFIGURE_CMD = $(PERL) ./configure.pl --do $(CONFIGFILE)
+CONFIGURE_CMD = $(CONFIGURE) --do $(CONFIGFILE)
# keep these 2 lists in the same order!:
GENERATE_FROM=\
all: $(BIN) setuid exec
-makefile: makefile.1.mak $(CONFIGFILE) configure.pl
+makefile: makefile.1.mak $(CONFIGFILE)
$(CONFIGURE_CMD) --in makefile.1.mak --out makefile
-configure.pl: $(CONFIGFILE) config/configure.1.pl
- $(PERL) config/configure.1.pl --do target=direct settings-$(TARGET).txt config/settings.txt --in config/configure.1.pl --out configure.pl
-
-$(TO_GENERATE): $(GENERATE_FROM) $(CONFIGFILE) configure.pl
+$(TO_GENERATE): $(GENERATE_FROM) $(CONFIGFILE)
$(CONFIGURE_CMD) --v --in $(GENERATE_FROM) --out $(TO_GENERATE)
-$(PERL_WRAP_EXEC): %: exec/exec.c exec/settings.txt configure.pl
- $(PERL) configure.pl --do path=$(BIN_PATH) target=$*.pl io_path=$(LOG_PATH) stderr=$*-stderr.log exec/settings.txt --in exec/exec.c --out $*.c
+$(PERL_WRAP_EXEC): %: exec/exec.c exec/settings.txt
+ $(CONFIGURE) --do path=$(BIN_PATH) target=$*.pl io_path=$(LOG_PATH) stderr=$*-stderr.log exec/settings.txt --in exec/exec.c --out $*.c
$(CC) $(CF) -o $@ $*.c
exec: $(EXEC)
clean:
- $(RM) -f configure.pl $(TO_GENERATE) $(PERL_WRAP_EXEC) $(PERL_WRAP_EXEC:=.c)
- $(PERL) config/configure.1.pl --do $(DEFAULT_CONFIGFILE) --in makefile.1.mak --out makefile
+ $(RM) -f $(TO_GENERATE) $(PERL_WRAP_EXEC) $(PERL_WRAP_EXEC:=.c)
+ $(CONFIGURE) --do $(DEFAULT_CONFIGFILE) --in makefile.1.mak --out makefile
PHONY: all clean install setuid exec mktree cp_bin cp_lib cp_www cp_conf cp_cron
# "makefile" is automatically generated from "makefile.1.mak"
#
-# Copyright (C) 2016, 2017, 2023, 2024 Balthasar Szczepański
+# Copyright (C) 2016, 2017, 2023, 2024, 2026 Balthasar Szczepański
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# make -B TARGET=target_name makefile
endif
PERL = perl
+CONFIGURE = botm-config
###MAKE_CC: CC=gcc
###MAKE_CF: CF=-g -Wall
###MAKE_RM: RM = rm
###MAKE_SUDO: SUDO = sudo
+###MAKE_CONFIGURE: CONFIGURE = perl /botm/bin/config-1.3/configure.pl
+
###MAKE_BIN_PATH: BIN_PATH = /botm/bin/bsta
###MAKE_DATA_PATH: DATA_PATH = /botm/data/bsta
###MAKE_DATA_WORDS_PATH: DATA_WORDS_PATH = /botm/data/bsta/words
DEFAULT_CONFIGFILE = settings-$(DEFAULT_TARGET).txt settings.txt
# The configuration tool
-CONFIGURE_CMD = $(PERL) ./configure.pl --do $(CONFIGFILE)
+CONFIGURE_CMD = $(CONFIGURE) --do $(CONFIGFILE)
# keep these 2 lists in the same order!:
GENERATE_FROM=\
all: $(BIN) setuid exec
-makefile: makefile.1.mak $(CONFIGFILE) configure.pl
+makefile: makefile.1.mak $(CONFIGFILE)
$(CONFIGURE_CMD) --in makefile.1.mak --out makefile
-configure.pl: $(CONFIGFILE) config/configure.1.pl
- $(PERL) config/configure.1.pl --do target=direct settings-$(TARGET).txt config/settings.txt --in config/configure.1.pl --out configure.pl
-
-$(TO_GENERATE): $(GENERATE_FROM) $(CONFIGFILE) configure.pl
+$(TO_GENERATE): $(GENERATE_FROM) $(CONFIGFILE)
$(CONFIGURE_CMD) --v --in $(GENERATE_FROM) --out $(TO_GENERATE)
-$(PERL_WRAP_EXEC): %: exec/exec.c exec/settings.txt configure.pl
- $(PERL) configure.pl --do path=$(BIN_PATH) target=$*.pl io_path=$(LOG_PATH) stderr=$*-stderr.log exec/settings.txt --in exec/exec.c --out $*.c
+$(PERL_WRAP_EXEC): %: exec/exec.c exec/settings.txt
+ $(CONFIGURE) --do path=$(BIN_PATH) target=$*.pl io_path=$(LOG_PATH) stderr=$*-stderr.log exec/settings.txt --in exec/exec.c --out $*.c
$(CC) $(CF) -o $@ $*.c
exec: $(EXEC)
clean:
- $(RM) -f configure.pl $(TO_GENERATE) $(PERL_WRAP_EXEC) $(PERL_WRAP_EXEC:=.c)
- $(PERL) config/configure.1.pl --do $(DEFAULT_CONFIGFILE) --in makefile.1.mak --out makefile
+ $(RM) -f $(TO_GENERATE) $(PERL_WRAP_EXEC) $(PERL_WRAP_EXEC:=.c)
+ $(CONFIGURE) --do $(DEFAULT_CONFIGFILE) --in makefile.1.mak --out makefile
PHONY: all clean install setuid exec mktree cp_bin cp_lib cp_www cp_conf cp_cron
rm : /usr/bin/rm
sudo : /usr/bin/sudo
-oldlogs: /botm/bin/oldlogs/oldlogs.pl
+oldlogs : /botm/bin/oldlogs/oldlogs.pl
+configure: /botm/bin/config-1.3/configure.pl
CC: /usr/bin/gcc
CF: -g -Wall
rm : /usr/bin/rm
sudo : /usr/bin/sudo
-oldlogs: /botm/bin/oldlogs/oldlogs.pl
+oldlogs : /botm/bin/oldlogs/oldlogs.pl
+configure: /botm/bin/config-1.3/configure.pl
CC: /usr/bin/gcc
CF: -g -Wall
rm : /usr/bin/rm
sudo : /usr/bin/sudo
-oldlogs: /botm/bin/oldlogs/oldlogs.pl
+oldlogs : /botm/bin/oldlogs/oldlogs.pl
+configure: /botm/bin/config-1.3/configure.pl
CC: /usr/bin/gcc
CF: -g -Wall
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-_version: 1.2.15
+_version: 1.3.0
_SHEBANG: #!$0
MAKE_TMP_PATH = TMP_PATH = $tmp_path
MAKE_WWW_PATH = WWW_PATH = $www_path
+MAKE_CONFIGURE = CONFIGURE = \$(PERL) $configure
+
PERL_LIB = @_PERL_USE_2(lib, @_PERL_STR($lib_path))