From 3ab916d9df099c42caa51f14b79262732c9daaad Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 08 May 2013 12:32:23 -0400 Subject: Move code from src/local.mk to Makefile.in. --- 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) diff --git a/src/local.mk b/src/local.mk index c7a7b6c..da824aa 100644 --- a/src/local.mk +++ b/src/local.mk @@ -26,20 +26,3 @@ src_srcs = \ src/oh-autotest.sh \ src/oh-autoinstall.sh \ src/oh-architecture.sh -src_bin = $(src_srcs:.sh=) -src_distfiles = src/local.mk $(src_srcs) - -# FIXME: libopkhelper is deprecated. Migrate code and remove this variable. -src_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 '$(src_script)' '$(srcdir)/$*.sh' >'$*' -- cgit v0.9.1