diff options
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index f504c80..90eab0b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -46,7 +46,7 @@ include $(srcdir)/lib/local.mk include $(srcdir)/man/local.mk include $(srcdir)/locale/local.mk -bin = $(src_bin) +bin = $(bin_srcs:.sh=) pkglib = $(lib_pkglib) man1 = $(man_man1) locale = $(locale_locale) @@ -61,11 +61,27 @@ distfiles = \ INSTALL \ ChangeLog \ TODO \ - $(src_distfiles) \ + src/local.mk \ + $(bin_srcs) \ $(lib_distfiles) \ $(man_distfiles) \ $(locale_distfiles) +# FIXME: libopkhelper is deprecated. Migrate code and remove this variable. +script = \ + s&@@PACKAGE_NAME@@&$(package_name)&;\ + s&@@PACKAGE_VERSION@@&$(package_version)&;\ + s&@@PKGLIBDIR@@&$(pkglibdir)&;\ + s&@@LIBOPKHELPER@@&$(libopkhelper)&;\ + s&@@LOCALEDIR@@&$(localedir)&;\ + s&@@SH@@&$(sh)&; + +.SUFFIXES: .sh + +.sh: + @printf ' SED %s\n' '$*' + @sed '$(script)' '$(srcdir)/$*.sh' >'$*' + all: all-exec all-data all-exec: all-bin all-pkglib all-bin: $(bin) |