--- /dev/null
+[submodule "config"]
+ path = config
+ url = ../../botm/config
--- /dev/null
+Subproject commit 1c21433837c5bc34100f04bbfeb8ce403844e91d
# when want to change target run this first:
# make -B TARGET=target_name makefile
endif
+PERL = perl
CONFIGFILE = settings-$(TARGET).txt settings.txt
# The configuration tool
# http://bicyclesonthemoon.info/git/botm-config
-CONFIGURE =/botm/bin/config/configure.pl
-CONFIGURE_CMD = $(PERL) $(CONFIGURE) $(CONFIGFILE)
+CONFIGURE_CMD = $(PERL) ./configure.pl $(CONFIGFILE)
# keep these 2 lists in the same order!:
GENERATE_FROM=\
all: $(TO_GENERATE) $(C) $(C_CGI)
-makefile: makefile.1.mak $(CONFIGFILE)
+makefile: makefile.1.mak $(CONFIGFILE) configure.pl
$(CONFIGURE_CMD) < makefile.1.mak > makefile
-$(TO_GENERATE): $(GENERATE_FROM) $(CONFIGFILE)
+configure.pl: $(CONFIGFILE) config/configure.1.pl
+ $(PERL) config/configure.1.pl target=direct settings-$(TARGET).txt config/settings.txt --in config/configure.1.pl --out configure.pl
+
+
+$(TO_GENERATE): $(GENERATE_FROM) $(CONFIGFILE) configure.pl
$(CONFIGURE_CMD) --in $(GENERATE_FROM) --out $(TO_GENERATE)
$(C): %: %.c
clean:
- $(RM) -f $(TO_GENERATE) $(C) $(C_CGI)
+ $(RM) -f configure.pl $(TO_GENERATE) $(C) $(C_CGI)
PHONY: all clean setuid mktree cp_bin co_conf cp_cron cp_src cp_www cp_www_desc install
# when want to change target run this first:
# make -B TARGET=target_name makefile
endif
+PERL = perl
CONFIGFILE = settings-$(TARGET).txt settings.txt
# The configuration tool
# http://bicyclesonthemoon.info/git/botm-config
-CONFIGURE = /botm/bin/config/configure.pl ###MAKE_CONFIGURE:
-CONFIGURE_CMD = $(PERL) $(CONFIGURE) $(CONFIGFILE)
+CONFIGURE_CMD = $(PERL) ./configure.pl $(CONFIGFILE)
# keep these 2 lists in the same order!:
GENERATE_FROM=\
all: $(TO_GENERATE) $(C) $(C_CGI)
-makefile: makefile.1.mak $(CONFIGFILE)
+makefile: makefile.1.mak $(CONFIGFILE) configure.pl
$(CONFIGURE_CMD) < makefile.1.mak > makefile
-$(TO_GENERATE): $(GENERATE_FROM) $(CONFIGFILE)
+configure.pl: $(CONFIGFILE) config/configure.1.pl
+ $(PERL) config/configure.1.pl target=direct settings-$(TARGET).txt config/settings.txt --in config/configure.1.pl --out configure.pl
+
+
+$(TO_GENERATE): $(GENERATE_FROM) $(CONFIGFILE) configure.pl
$(CONFIGURE_CMD) --in $(GENERATE_FROM) --out $(TO_GENERATE)
$(C): %: %.c
clean:
- $(RM) -f $(TO_GENERATE) $(C) $(C_CGI)
+ $(RM) -f configure.pl $(TO_GENERATE) $(C) $(C_CGI)
PHONY: all clean setuid mktree cp_bin co_conf cp_cron cp_src cp_www cp_www_desc install
# where TARGET_NAME is the value
target: release
-# The configuration tool
-# http://bicyclesonthemoon.info/git/botm-config
-# alternatively, copy configure.pl to source directory.
-configure: /botm/bin/config/configure.pl
useragent2: bothasar_t (http://1190.bicyclesonthemoon.info/ott/; Time thread mirror bot)
useragent3: bothasar_p (http://1190.bicyclesonthemoon.info/ott/; Time thread post bot)