summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.in20
-rw-r--r--src/local.mk17
2 files changed, 18 insertions, 19 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)
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' >'$*'