thisconfigdir=../../..
myfulldir=kadmin/testing/scripts
mydir=kadmin/testing/scripts
BUILDTOP=$(REL)..$(S)..$(S)..
PERL_PATH=@PERL_PATH@
.SUFFIXES: .plin .pl
GEN_SCRIPTS = compare_dump.pl fixup-conf-files.pl make-host-keytab.pl \
simple_dump.pl verify_xrunner_report.pl qualname.pl
all:: env-setup.sh $(GEN_SCRIPTS) restore_files.sh
env-setup.sh: env-setup.stamp
env-setup.stamp: $(srcdir)/env-setup.shin $(thisconfigdir)/config.status \
Makefile
cd $(thisconfigdir) && \
CONFIG_FILES=$(mydir)/env-setup.sh:$(mydir)/env-setup.shin $(SHELL) \
config.status
chmod +x env-setup.sh
touch env-setup.stamp
restore_files.sh:
rm -f restore_files.sh
ln -s $(srcdir)/save_files.sh restore_files.sh
.plin.pl:
-rm -f $@.tmp
echo "#!$(PERL_PATH)" > $@.tmp
sed 1d $< >> $@.tmp
chmod +x $@.tmp
mv $@.tmp $@
clean::
-rm -f $(GEN_SCRIPTS) *.tmp env-setup.sh env-setup.stamp restore_files.sh