GCLIBTGZ=gc5.0alpha2.tar.gz

all: XXMakefile
	make -f XXMakefile 

install: w3m XXMakefile
	make -f XXMakefile install

uninstall: XXMakefile
	make -f XXMakefile uninstall

proto: XXMakefile
	make -f XXMakefile proto

clean: XXMakefile
	make -f XXMakefile clean
	rm XXMakefile

veryclean: clean
	(cd gc; make clean)
	rm -f config.param
	rm -f */*~

prepare:
	rm -rf gc
	gzip -dc ../$(GCLIBTGZ) | tar xvf -
	cp XMakefile.dist XMakefile

XXMakefile: XMakefile config.h
	awk '/^#ifdef makefile_parameter/,/^#else/' config.h | cat - XMakefile > XXMakefile
