1 include $(top_srcdir)/Makefile.am.common
3 noinst_SCRIPTS = setup-env
6 top_srcdir="$$(cd ${top_srcdir} && pwd)" ; \
7 top_builddir="$$(cd ${top_builddir} && pwd)" ; \
9 -e "s,[@]EGREP[@],$(EGREP),g" \
10 -e "s,[@]top_srcdir[@],$${top_srcdir},g" \
11 -e "s,[@]top_builddir[@],$${top_builddir},g" \
12 -e "s,[@]NO_AFS[@],$(NO_AFS),g"
14 setup-env: setup-env.in Makefile
15 $(do_subst) < $(srcdir)/setup-env.in > setup-env.tmp
16 chmod +x setup-env.tmp
17 mv setup-env.tmp setup-env
19 EXTRA_DIST = setup-env.in
21 CLEANFILES = setup-env setup-env.tmp