--- /dev/null
+ifndef TARGET
+TARGET = debug
+# available targets:
+# debug
+# release
+# when want to change target run this first:
+# make -B TARGET=release makefile
+endif
+
+CONFIGFILE = settings-$(TARGET).txt settings.txt
+
+PERL = /usr/bin/perl
+CHMOD = /usr/bin/chmod
+CP = /usr/bin/cp
+RM = /usr/bin/rm
+MKDIR = /usr/bin/mkdir
+
+BIN_DIR = /botm/bin/test-configure
+
+
+CONFIGURE = $(PERL) ./configure.pl $(CONFIGFILE)
+
+all: exec
+
+makefile: makefile.1.mak configure.pl $(CONFIGFILE)
+ $(CONFIGURE) < makefile.1.mak > makefile
+
+exec: configure.pl
+ $(CHMOD) +x configure.pl
+
+bin_dir:
+ $(MKDIR) -p $(BIN_DIR)
+
+cp_bin: configure.pl exec | bin_dir
+ $(CP) configure.pl $(BIN_DIR)
+
+rm_bin:
+ $(RM) -rf $(BIN_DIR)
+
+install: cp_bin
+
+uninstall: rm_bin
+
+clean:
+
+PHONY: all exec bin_dir cp_bin rm_bin install uninstall clean
+
--- /dev/null
+ifndef TARGET
+TARGET = debug ###make_target:
+# available targets:
+# debug
+# release
+# when want to change target run this first:
+# make -B TARGET=release makefile
+endif
+
+CONFIGFILE = settings-$(TARGET).txt settings.txt
+
+###make_perl: PERL = perl
+###make_chmod: CHMOD = chmod
+###make_cp: CP = cp
+###make_rm: RM = rm
+###make_mkdir: MKDIR = mkdir
+
+###make_bin_dir: BIN_DIR = /botm/bin/configure
+
+
+CONFIGURE = $(PERL) ./configure.pl $(CONFIGFILE)
+
+all: exec
+
+makefile: makefile.1.mak configure.pl $(CONFIGFILE)
+ $(CONFIGURE) < makefile.1.mak > makefile
+
+exec: configure.pl
+ $(CHMOD) +x configure.pl
+
+bin_dir:
+ $(MKDIR) -p $(BIN_DIR)
+
+cp_bin: configure.pl exec | bin_dir
+ $(CP) configure.pl $(BIN_DIR)
+
+rm_bin:
+ $(RM) -rf $(BIN_DIR)
+
+install: cp_bin
+
+uninstall: rm_bin
+
+clean:
+
+PHONY: all exec bin_dir cp_bin rm_bin install uninstall clean
+
--- /dev/null
+target: debug
+bin_dir: /botm/bin/test-configure
+
+perl: /usr/bin/perl
+chmod: /usr/bin/chmod
+cp: /usr/bin/cp
+rm: /usr/bin/rm
+mkdir: /usr/bin/mkdir
--- /dev/null
+target: release
+bin_dir: /botm/bin/configure
+
+perl: /usr/bin/perl
+chmod: /usr/bin/chmod
+cp: /usr/bin/cp
+rm: /usr/bin/rm
+mkdir: /usr/bin/mkdir
+
--- /dev/null
+make_target = TARGET = $target
+
+make_perl = PERL = $perl
+make_chmod = CHMOD = $chmod
+make_cp = CP = $cp
+make_rm = RM = $rm
+make_mkdir = MKDIR = $mkdir
+
+make_bin_dir = BIN_DIR = $bin_dir
\ No newline at end of file