summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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)