head     1.1;
branch   1.1.1;
access   ;
symbols  start:1.1.1.1 vendor:1.1.1;
locks    ; strict;
comment  @# @;


1.1
date     2004.04.10.16.02.00;  author tarookumichi;  state Exp;
branches 1.1.1.1;
next     ;

1.1.1.1
date     2004.04.10.16.02.00;  author tarookumichi;  state Exp;
branches ;
next     ;


desc
@@



1.1
log
@Initial revision
@
text
@targets		= conf

conf_target 	= Configs/xconfig.tk
conf_tmpfiles	= Configs/xconfig.tk.mid
conf_files	= 
conf_subdirs	= share

include build/Makefile.conf
include build/Makefile.defs

SHARE_PATH = build/config/share
EXE_FIX = $(if $(strip $(shell uname -o | sed -e 's/cygwin//gi')), ,.exe)

WISH_EXE_PATH = $(call pathsearch-return,wish$(EXE_FIX))
WISH_NOEXEPATH = $(call pathsearch-return,wish)
WISH_PATH =  $(if $(WISH_NOEXE_PATH), $(WISH_NOEXE_PATH), $(WISH_EXE_PATH))

config:
	@@echo --------------------------------------------------------
	@@echo Trying to build and run xconfig, menuconfig or oldconfig
	@@echo If neather one will start. Then use:
	@@echo \"make xconfig\" to try to build and run the tcl/tk graphical configurator. This requires tcl/tk to be installed
	@@echo \"make menuconfig\" to try to build and run the tkl/tk graphical configurator. This requires ncurses to be installed
	@@echo \"make oldconfig\" to try to build and run the shell configurator
	@@echo --------------------------------------------------------
	-$(MAKE) -f build/Makefile.c obj=build/config/share target=tkparse cmd=dobuild >/dev/null 2>&1
	-$(MAKE) -f build/Makefile.c obj=build/config/share target=mconf cmd=dobuild >/dev/null 2>&1
	-$(MAKE) -f build/Makefile.c obj=build/config/share target=conf cmd=dobuild >/dev/null 2>&1
	$(if $(strip $(wildcard $(WISH_PATH))), \
$(SHARE_PATH)/tkparse.exe < build/config/Configs/xconfig.in > build/config/Configs/xconfig.tk.mid; \
cat $(SHARE_PATH)/header.tk build/config/Configs/xconfig.tk.mid $(SHARE_PATH)/tail.tk >build/config/Configs/xconfig.tk; \
$(WISH_PATH) build/config/Configs/xconfig.tk \
,$(if $(strip $(wildcard $(SHARE_PATH)/mconf.exe)), \
@@echo Could not start xconfig. Switching to menuconfig instead;build/config/share/mconf.exe build/config/Configs/Config.in \
,$(if $(strip $(wildcard build/config/share/conf.exe)), \
@@echo Could not start xconfig nor menuconfig. Switching to oldconfig instead;build/config/share/conf.exe build/config/Configs/Config.in \
,echo Neather tkconfig, menuconfig or oldconfig could be build;exit 1)))



xconfig:
	$(MAKE) -f build/Makefile.c obj=build/config/share target=tkparse cmd=dobuild >/dev/null 2>&1
	$(SHARE_PATH)/tkparse.exe < build/config/Configs/xconfig.in > build/config/Configs/xconfig.tk.mid; 
	cat $(SHARE_PATH)/header.tk build/config/Configs/xconfig.tk.mid $(SHARE_PATH)/tail.tk >build/config/Configs/xconfig.tk; 
	$(WISH_PATH) build/config/Configs/xconfig.tk 

menuconfig:
	$(MAKE) -f build/Makefile.c obj=build/config/share target=mconf cmd=dobuild >/dev/null 2>&1
	build/config/share/mconf.exe build/config/Configs/Config.in

oldconfig:
	$(MAKE) -f build/Makefile.c obj=build/config/share target=conf cmd=dobuild >/dev/null 2>&1
	build/config/share/conf.exe build/config/Configs/Config.in@


1.1.1.1
log
@Core library
@
text
@@
