summaryrefslogtreecommitdiffhomepage
path: root/project
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-25 05:10:18 +0000
committermidipix <writeonce@midipix.org>2024-03-25 05:10:18 +0000
commit01d76383b6fe9b44cc3dd151f2757dcd503932fc (patch)
tree6250c657fa0087a6854019c6e8fe92e34148c5b0 /project
parent3bb79188477e865ad9ad4a99668dab9c0bbea530 (diff)
downloadslibtool-01d76383b6fe9b44cc3dd151f2757dcd503932fc.tar.bz2
slibtool-01d76383b6fe9b44cc3dd151f2757dcd503932fc.tar.xz
install slibtool.m4 and ltmain.sh to a package sub-folder under $(DATADIR).
Diffstat (limited to 'project')
-rw-r--r--project/extras.mk12
1 files changed, 12 insertions, 0 deletions
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