summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJani Välimaa <wally@mageia.org>2023-01-07 14:05:39 +0200
committerJani Välimaa <wally@mageia.org>2023-01-07 14:05:39 +0200
commitdc1a2417efce3f67cc93112b6b8accd0710bdb9d (patch)
tree6e0ec648e55987c5847bc94d71706aa14a70e2b3 /Makefile
parent46fb6175f6347391af2d1646c573e245de6e001f (diff)
downloadmultiarch-utils-dc1a2417efce3f67cc93112b6b8accd0710bdb9d.tar
multiarch-utils-dc1a2417efce3f67cc93112b6b8accd0710bdb9d.tar.gz
multiarch-utils-dc1a2417efce3f67cc93112b6b8accd0710bdb9d.tar.bz2
multiarch-utils-dc1a2417efce3f67cc93112b6b8accd0710bdb9d.tar.xz
multiarch-utils-dc1a2417efce3f67cc93112b6b8accd0710bdb9d.zip
Install wrapper scripts into /usr/lib/rpm/VENDOR/
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index fbee58f..beba5b8 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,10 @@
prefix = /usr
bindir = $(prefix)/bin
includedir = $(prefix)/include
-rpmmacrodir = $(prefix)/lib/rpm/macros.d
+rpmconfigdir = $(prefix)/lib/rpm
+rpmmacrodir = $(rpmconfigdir)/macros.d
+
+VENDOR ?= mageia
RPM_MACRO_FILES = multiarch
RPM_BIN_FILES = mkmultiarch check-multiarch-files
@@ -33,8 +36,8 @@ install:
for f in $(RPM_MACRO_FILES); do \
perl -pe 's/%MULTIARCH_DISTRO%/$(MULTIARCH_DIST)/' macros.$$f > $(DESTDIR)$(rpmmacrodir)/macros.$$f; \
done
- -mkdir -p $(DESTDIR)$(prefix)/lib/rpm
- install -m755 $(RPM_BIN_FILES) $(DESTDIR)$(prefix)/lib/rpm/
+ -mkdir -p $(DESTDIR)$(rpmconfigdir)/$(VENDOR)
+ install -m755 $(RPM_BIN_FILES) $(DESTDIR)$(rpmconfigdir)/$(VENDOR)
-mkdir -p $(DESTDIR)$(bindir)
install -m755 $(BINARIES) $(DESTDIR)$(bindir)/
-mkdir -p $(DESTDIR)$(includedir)