1 |
2 |
tarookumic |
targets = conf
|
2 |
|
|
|
3 |
|
|
conf_target = Configs/xconfig.tk
|
4 |
|
|
conf_tmpfiles = Configs/xconfig.tk.mid
|
5 |
|
|
conf_files =
|
6 |
|
|
conf_subdirs = share
|
7 |
|
|
|
8 |
|
|
include build/Makefile.conf
|
9 |
|
|
include build/Makefile.defs
|
10 |
|
|
|
11 |
|
|
SHARE_PATH = build/config/share
|
12 |
|
|
EXE_FIX = $(if $(strip $(shell uname -o | sed -e 's/cygwin//gi')), ,.exe)
|
13 |
|
|
|
14 |
|
|
WISH_EXE_PATH = $(call pathsearch-return,wish$(EXE_FIX))
|
15 |
|
|
WISH_NOEXEPATH = $(call pathsearch-return,wish)
|
16 |
|
|
WISH_PATH = $(if $(WISH_NOEXE_PATH), $(WISH_NOEXE_PATH), $(WISH_EXE_PATH))
|
17 |
|
|
|
18 |
|
|
config:
|
19 |
|
|
@echo --------------------------------------------------------
|
20 |
|
|
@echo Trying to build and run xconfig, menuconfig or oldconfig
|
21 |
|
|
@echo If neather one will start. Then use:
|
22 |
|
|
@echo \"make xconfig\" to try to build and run the tcl/tk graphical configurator. This requires tcl/tk to be installed
|
23 |
|
|
@echo \"make menuconfig\" to try to build and run the tkl/tk graphical configurator. This requires ncurses to be installed
|
24 |
|
|
@echo \"make oldconfig\" to try to build and run the shell configurator
|
25 |
|
|
@echo --------------------------------------------------------
|
26 |
|
|
-$(MAKE) -f build/Makefile.c obj=build/config/share target=tkparse cmd=dobuild >/dev/null 2>&1
|
27 |
|
|
-$(MAKE) -f build/Makefile.c obj=build/config/share target=mconf cmd=dobuild >/dev/null 2>&1
|
28 |
|
|
-$(MAKE) -f build/Makefile.c obj=build/config/share target=conf cmd=dobuild >/dev/null 2>&1
|
29 |
|
|
$(if $(strip $(wildcard $(WISH_PATH))), \
|
30 |
|
|
$(SHARE_PATH)/tkparse.exe < build/config/Configs/xconfig.in > build/config/Configs/xconfig.tk.mid; \
|
31 |
|
|
cat $(SHARE_PATH)/header.tk build/config/Configs/xconfig.tk.mid $(SHARE_PATH)/tail.tk >build/config/Configs/xconfig.tk; \
|
32 |
|
|
$(WISH_PATH) build/config/Configs/xconfig.tk \
|
33 |
|
|
,$(if $(strip $(wildcard $(SHARE_PATH)/mconf.exe)), \
|
34 |
|
|
@echo Could not start xconfig. Switching to menuconfig instead;build/config/share/mconf.exe build/config/Configs/Config.in \
|
35 |
|
|
,$(if $(strip $(wildcard build/config/share/conf.exe)), \
|
36 |
|
|
@echo Could not start xconfig nor menuconfig. Switching to oldconfig instead;build/config/share/conf.exe build/config/Configs/Config.in \
|
37 |
|
|
,echo Neather tkconfig, menuconfig or oldconfig could be build;exit 1)))
|
38 |
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
|
|
xconfig:
|
42 |
|
|
$(MAKE) -f build/Makefile.c obj=build/config/share target=tkparse cmd=dobuild >/dev/null 2>&1
|
43 |
|
|
$(SHARE_PATH)/tkparse.exe < build/config/Configs/xconfig.in > build/config/Configs/xconfig.tk.mid;
|
44 |
|
|
cat $(SHARE_PATH)/header.tk build/config/Configs/xconfig.tk.mid $(SHARE_PATH)/tail.tk >build/config/Configs/xconfig.tk;
|
45 |
|
|
$(WISH_PATH) build/config/Configs/xconfig.tk
|
46 |
|
|
|
47 |
|
|
menuconfig:
|
48 |
|
|
$(MAKE) -f build/Makefile.c obj=build/config/share target=mconf cmd=dobuild >/dev/null 2>&1
|
49 |
|
|
build/config/share/mconf.exe build/config/Configs/Config.in
|
50 |
|
|
|
51 |
|
|
oldconfig:
|
52 |
|
|
$(MAKE) -f build/Makefile.c obj=build/config/share target=conf cmd=dobuild >/dev/null 2>&1
|
53 |
|
|
build/config/share/conf.exe build/config/Configs/Config.in
|