
all:: ../spcconfig.tmpl

../spcconfig.tmpl: init.e Makefile
	test -f $$HOME/.spcconfig \
	  && mv $$HOME/.spcconfig $$HOME/.spcconfig.save \
	  || true
	expect -f init.e
	sed 's/^DRIVE_FSA_ROOT_DIRECTORY.*/DRIVE_FSA_ROOT_DIRECTORY	@DRIVE_E_DIR@/' $$HOME/.spcconfig \
	  > $@
	test -f $$HOME/.spcconfig.save \
	  && cp -fp $$HOME/.spcconfig $$HOME/.spcconfig.save \
	  || true

clean:
	rm -f ../spcconfig.tmpl
