config:
	#rm -f `cat ../Generic/hier_hitlist`

	## top level directory ##

	cd ../..; rm -f Makefile Maker Tester make.err make.out test.err \
	                test.out *.bak *.old
	cp top_make.com         ../../make.com
	cp top_make-iconc.com   ../../make-iconc.com
	cp top_make-icont.com   ../../make-icont.com
	cp top_clean.com        ../../clean.com
	cp top_iplmake.com      ../../iplmake.com
	cp top_ipltest.com      ../../ipltest.com
	cp make-binaries.com	../..
	cp backup.com           ../..
	cp backupbinary.com     ../..
	cp icon.hlp             ../..
	cp STATUS               ../..

	## bin ##

	rm -f ../../bin/*
	cp def_icon_bin.com  ../../bin
	cp deficon.com       ../../bin
	cp iexe.com          ../../bin
	cp X11.opt           ../../bin

	## src ##

	cd ../../src; rm -f Makefile *.bak *.old
	cp src_clean.com  ../../src/clean.com

	## src/h ##

	cd ../../src/h; rm -f *.bak *.old path.h
	cp define.h  ../../src/h

	## src/common ##

	cd ../../src/common; rm -f Last Makefile Printer doincl ebcdic.c \
	                           patchstr.c patchstr rswitch.c *.o *.bak *.old
	cp common_make.com  ../../src/common/make.com
	cp rswitch.mar      ../../src/common

	## src/preproc ##

	cd ../../src/preproc; rm -f Makefile pp *.o *.bak *.old
	cp preproc_make.com  ../../src/preproc/make.com

	## src/rtt ##

	cd ../../src/rtt; rm -f Makefile rtt *.o *.bak *.old
	cp rtt_make.com  ../../src/rtt/make.com

	## src/icont ##

	cd ../../src/icont; rm -f Edit Last Makefile Printer fixgram hello \
	                          icont iconx.hdr mkkeytab mktoktab newhdr \
				  pscript trash *.o *.bak *.old ixhdr.c newhdr.c
	cp icont_make.com  ../../src/icont/make.com

	## src/runtime ##

	cd ../../src/runtime; rm -f Makefile iconx rt.a rt.db \
				    rttcur.lst rttfull.lst *.o *.bak *.old \
				    fxmsdos.ri fxprmnt.ri fxvis.ri
	cp runtime_make-icont.com  ../../src/runtime/make-icont.com
	cp runtime_make-iconc.com  ../../src/runtime/make-iconc.com

	## src/iconc ##

	cd ../../src/iconc; rm -f Makefile fixgram iconc mktoktab pscript *.o \
	                          *.bak *.old
	cp iconc_make.com  ../../src/iconc/make.com

	## src/vtran ##

	rm -rf ../../src/vtran

	## src/xpm ## (not done yet)

	cd ../../src/xpm; rm -f FILES Imakefile Makefile* libXpm.a rename *.o \
				*.bak *.old
	cd ../../src/xpm/doc; rm -f FILES Imakefile Makefile* name-3.0* \
				    xpm-3.2-ansi.fix *.sty *.aux *.idx *.log \
				    *.tex
	-uncompress ../../src/xpm/doc/*.Z
	cp xpm_make.com  ../../src/xpm/make.com

	## ipl ##

	cd ../../ipl; rm -f Compile-icont Makefile Translate-icont \
			    packs/idol/Makefile icode/* ucode/*
	cp ipl_make.com          ../../ipl/make.com
	cp ipl_procs.lst         ../../ipl/procs/procs.lst
	cp ipl_progs.lst         ../../ipl/progs/progs.lst
	cp ipl_gprocs.lst        ../../ipl/gprocs/gprocs.lst
	cp ipl_gprogs.lst        ../../ipl/gprogs/gprogs.lst
	cp ipl_idol_vms.com      ../../ipl/packs/idol/vms.com
	cp ipl_idol_vmsidol.com  ../../ipl/packs/idol/vmsidol.com

	## docs ##

	cp README.DOCS  ../../docs/README

	## tests ##

	rm -f ../../tests/Makefile ../../tests/special/Makefile
	rm -rf ../../tests/bench ../../tests/vtran
	#      ../../tests/x
	cd ../../tests/samples; rm -f Makefile* Test-iconc Test-icont \
	                              diffwords local/*
	cd ../../tests/general; rm -f Makefile* Test-iconc Test-icont \
	                              local/* *.bak
	cd ../../tests/ipl;     rm -f Makefile Test local/*
	cd ../../tests/calling; rm -f Makefile
	cd ../../tests/preproc; rm -f Makefile Test-pp local/* *.o

	cp tests_test-iconc.com       ../../tests/test-iconc.com
	cp tests_test-icont.com       ../../tests/test-icont.com
	cp tests_samples.com          ../../tests/samples.com
	cp tests_samples-iconc.com    ../../tests/samples-iconc.com
	cp tests_samples-icont.com    ../../tests/samples-icont.com
	cp tests_samples.lst          ../../tests/samples/samples.lst
	cp tests_general-iconc.com    ../../tests/general-iconc.com
	cp tests_general-icont.com    ../../tests/general-icont.com
	cp tests_coexpr.com           ../../tests/coexpr.com
	cp tests_coexpr-iconc.com     ../../tests/coexpr-iconc.com
	cp tests_coexpr-icont.com     ../../tests/coexpr-icont.com
	cp tests_ipl.com              ../../tests/ipl.com
	cp tests_clean.com            ../../tests/clean.com
	cp tests_preproc_test.com     ../../tests/preproc/test.com
	cp tests_preproc_test-pp.com  ../../tests/preproc/test-pp.com

	## files that should probably be removed from /usr/icon/v8

	rm -f ../../tests/samples/stand/diffwords.out \
	      ../../tests/samples/stand/wordcount.out \
	      ../../tests/samples/stand/queens.out
