summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/local.mk19
1 files changed, 18 insertions, 1 deletions
diff --git a/lib/local.mk b/lib/local.mk
index 50a3669..8eaf8c5 100644
--- a/lib/local.mk
+++ b/lib/local.mk
@@ -1,4 +1,5 @@
-libopkbuild_sources += \
+libdata_DATA = %reldir%/libopkbuild.$(SHSOEXT).$(libopkbuild_shsoversion)
+libopkbuild_sources = \
%reldir%/common.sh \
%reldir%/locale.sh \
%reldir%/output.sh \
@@ -7,6 +8,22 @@ libopkbuild_sources += \
%reldir%/control.sh \
%reldir%/changelog.sh \
%reldir%/deps.sh
+EXTRA_libopkbuild_sources =
+libopkbuild_ldadd = $(libopkbuild_sources:.sh=.sho)
+libopkbuild_dependencies = $(libopkbuild_ldadd)
+libopkbuild_shsoversion = 2
+
+CLEANFILES += \
+ $(libdata_DATA) \
+ $(libopkbuild_ldadd)
+EXTRA_DIST += \
+ $(libopkbuild_sources) \
+ $(EXTRA_libopkbuild_sources)
+
+%reldir%/libopkbuild.$(SHSOEXT).$(libopkbuild_shsoversion): \
+ $(libopkbuild_dependencies)
+ @rm -f %reldir%/libopkbuild.$(SHSOEXT).$(libopkbuild_shsoversion)
+ $(AM_V_CCLD)$(LIBLINK) $(libopkbuild_ldadd)
include %reldir%/package/local.mk
include %reldir%/metadata/local.mk