From 01d76383b6fe9b44cc3dd151f2757dcd503932fc Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 25 Mar 2024 05:10:18 +0000 Subject: install slibtool.m4 and ltmain.sh to a package sub-folder under $(DATADIR). --- project/extras.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/project/extras.mk b/project/extras.mk index 5118914..804a7cc 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -3,7 +3,9 @@ CFLAGS_STATIC_ATTR += -DSLBT_PRE_ALPHA -DSLBT_STATIC CFLAGS_APP_ATTR += -DSLBT_APP CFLAGS_MACHINE := -DSLBT_MACHINE=\"$(CC_HOST)\" +CFLAGS_PKGDATA := -DSLBT_PACKAGE_DATADIR=\"$(DESTDIR)$(DATADIR)/$(PACKAGE)\" CFLAGS_CONFIG += $(CFLAGS_MACHINE) +CFLAGS_CONFIG += $(CFLAGS_PKGDATA) CFLAGS_CONFIG += $(CFLAGS_ATTR_VISIBILITY_HIDDEN) src/driver/slbt_driver_ctx.o: version.tag @@ -17,6 +19,8 @@ RAPUNDEL = rdlibtool RAPUNJEL = rdclibtool STOOLIE = slibtoolize +install-app-extras: install-slibtoolize + install-app-extras: mkdir -p $(DESTDIR)$(BINDIR) @@ -82,3 +86,11 @@ install-app-extras: mv bin/$(RAPUNJEL)$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(RAPUNJEL)$(OS_APP_SUFFIX) mv bin/$(STOOLIE)$(OS_APP_SUFFIX).tmp $(DESTDIR)$(BINDIR)/$(STOOLIE)$(OS_APP_SUFFIX) + +install-slibtoolize: + mkdir -p $(DESTDIR)$(DATADIR)/$(PACKAGE) + + cp -p $(SOURCE_DIR)/m4/slibtool.m4 $(DESTDIR)$(DATADIR)/$(PACKAGE) + cp -p $(SOURCE_DIR)/aux/ltmain.sh $(DESTDIR)$(DATADIR)/$(PACKAGE) + +.PHONY: install-slibtoolize -- cgit v1.2.3