2 # Build time variable substitution for generated files.
7 do_shell_subst = $(AM_V_GEN) $(SED) \
8 -e "s:^ADMINDIR=.*$$:ADMINDIR='$(admindir)':" \
9 -e "s:^BACKUPSDIR=.*$$:BACKUPSDIR='$(backupsdir)':" \
10 -e "s:^PKGDATADIR_DEFAULT=.*$$:PKGDATADIR_DEFAULT='$(pkgdatadir)':" \
11 -e "s:^version=['\"][^'\"]*[\"']:version=\"$(PACKAGE_VERSION)\":" \
17 @test -d `dirname $@` || $(MKDIR_P) `dirname $@`
18 $(do_shell_subst) <$< >$@
19 $(AM_V_at) chmod +x $@
23 do_perl_subst = $(AM_V_GEN) $(SED) \
24 -e "s:^\#![[:space:]]*/usr/bin/perl:\#!$(PERL):" \
25 -e "s:our \$$CONFDIR = .*;:our \$$CONFDIR = '$(pkgconfdir)';:" \
26 -e "s:our \$$ADMINDIR = .*;:our \$$ADMINDIR = '$(admindir)';:" \
27 -e "s:our \$$LIBDIR = .*;:our \$$LIBDIR = '$(pkglibexecdir)';:" \
28 -e "s:our \$$DATADIR = .*;:our \$$DATADIR = '$(pkgdatadir)';:" \
29 -e "s:our \$$PROGMAKE = .*;:our \$$PROGMAKE = '$(MAKE)';:" \
30 -e "s:our \$$PROGTAR = .*;:our \$$PROGTAR = '$(TAR)';:" \
31 -e "s:our \$$PROGPATCH = .*;:our \$$PROGPATCH = '$(PATCH)';:" \
32 -e "s:our \$$PROGVERSION = .*;:our \$$PROGVERSION = '$(PACKAGE_VERSION)';:" \
38 @test -d `dirname $@` || $(MKDIR_P) `dirname $@`
39 $(do_perl_subst) <$< >$@
40 $(AM_V_at) chmod +x $@
44 do_make_subst = $(AM_V_GEN) $(SED) \
45 -e "s:dpkg_datadir[[:space:]]*=[[:space:]]*[^[:space:]]*:dpkg_datadir = $(pkgdatadir):" \