summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2018-12-22 13:40:53 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2018-12-22 13:40:53 (EST)
commitff51d4b0937617d791b1460f8fa0d94b7decd393 (patch)
tree3579b37537a6f17100e0e26043bb96d666540b64
parent3d68fa3d5a8188ecdf55e12391c820e0ae48b4e8 (diff)
Rewrite libopkbuild sources list building
-rw-r--r--Makefile.am10
-rw-r--r--lib/local.mk21
-rw-r--r--lib/metadata/local.mk4
-rw-r--r--lib/package/local.mk4
4 files changed, 19 insertions, 20 deletions
diff --git a/Makefile.am b/Makefile.am
index 32e6d66..ff9ee39 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,9 +18,6 @@
# along with opkbuild. If not, see <http://www.gnu.org/licenses/>.
include $(top_srcdir)/src/local.mk
-include $(top_srcdir)/lib/local.mk
-include $(top_srcdir)/lib/package/local.mk
-include $(top_srcdir)/lib/metadata/local.mk
include $(top_srcdir)/man/local.mk
include $(top_srcdir)/locale/local.mk
include $(top_srcdir)/tests/local.mk
@@ -38,10 +35,7 @@ LINKLIB = '$(srcdir)/tools/shld.sh' -o $@
bin_SCRIPTS = $(bin_sources:.sh=)
libdata_DATA = lib/libopkbuild$(SHSOEXT)$(libopkbuild_shsoversion)
-libopkbuild_sources = \
- $(pkgdata_sources) \
- $(pkgdatapackage_sources) \
- $(pkgdatametadata_sources)
+libopkbuild_sources =
libopkbuild_ldadd = $(libopkbuild_sources:.sh=.sho)
libopkbuild_dependencies = $(libopkbuild_ldadd)
libopkbuild_shsoversion = .1
@@ -189,3 +183,5 @@ lib/libopkbuild$(SHSOEXT)$(libopkbuild_shsoversion): $(libopkbuild_dependencies)
.sh.ms:
$(AM_V_GEN)$(MKDIR_P) "$$(dirname $@)"
$(AM_V_at)cp $< $@
+
+include $(top_srcdir)/lib/local.mk
diff --git a/lib/local.mk b/lib/local.mk
index 21aa786..d0c66e3 100644
--- a/lib/local.mk
+++ b/lib/local.mk
@@ -1,9 +1,12 @@
-pkgdata_sources = \
- lib/common.sh \
- lib/locale.sh \
- lib/output.sh \
- lib/package.sh \
- lib/metadata.sh \
- lib/control.sh \
- lib/changelog.sh \
- lib/deps.sh
+ libopkbuild_sources += \
+ %reldir%/common.sh \
+ %reldir%/locale.sh \
+ %reldir%/output.sh \
+ %reldir%/package.sh \
+ %reldir%/metadata.sh \
+ %reldir%/control.sh \
+ %reldir%/changelog.sh \
+ %reldir%/deps.sh
+
+include %reldir%/package/local.mk
+include %reldir%/metadata/local.mk
diff --git a/lib/metadata/local.mk b/lib/metadata/local.mk
index 4340160..a4095df 100644
--- a/lib/metadata/local.mk
+++ b/lib/metadata/local.mk
@@ -1,2 +1,2 @@
-pkgdatametadata_sources = \
- lib/metadata/proteanos.sh
+ libopkbuild_sources += \
+ %reldir%/proteanos.sh
diff --git a/lib/package/local.mk b/lib/package/local.mk
index aee6eca..61dce60 100644
--- a/lib/package/local.mk
+++ b/lib/package/local.mk
@@ -1,2 +1,2 @@
-pkgdatapackage_sources = \
- lib/package/2.sh
+ libopkbuild_sources += \
+ %reldir%/2.sh