aboutsummaryrefslogtreecommitdiff
path: root/src/kadmin/testing/scripts/Makefile.in
blob: 3f58e9248fd533427cb7e790ad7d1acee49e63bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
thisconfigdir=./../..
myfulldir=kadmin/testing/scripts
mydir=testing/scripts
BUILDTOP=$(REL)..$(S)..$(S)..
PERL=@PERL@

.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 

# 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 $(thisconfigdir)/config.status \
		Makefile 
	cd $(thisconfigdir) && \
		CONFIG_FILES=./testing/scripts/env-setup.sh:./testing/scripts/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)" > $@.tmp
	sed 1d $< >> $@.tmp
	chmod +x $@.tmp
	mv $@.tmp $@

clean::
	-rm -f $(GEN_SCRIPTS) *.tmp env-setup.sh env-setup.stamp restore_files.sh