mydir=kadmin$(S)testing$(S)scripts
BUILDTOP=$(REL)..$(S)..$(S)..

all: env-setup.sh runenv.sh $(GEN_SCRIPTS)

# Should only rebuild env_setup.sh here (use CONFIG_FILES=), but the weird krb5
# makefile post-processing is unconditional and would trash the makefile.
env-setup.sh: env-setup.stamp
env-setup.stamp: $(srcdir)/env-setup.shin $(BUILDTOP)/config.status \
		Makefile 
	(cd $(BUILDTOP) && \
		CONFIG_FILES=$(mydir)/env-setup.sh:$(mydir)/env-setup.shin $(SHELL) \
		config.status)
	chmod +x env-setup.sh
	touch env-setup.stamp

clean:
	-rm -f env-setup.sh env-setup.stamp
