summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 30c239c..3b11cde 100644
--- a/Makefile
+++ b/Makefile
@@ -10,10 +10,12 @@ prefix = /usr
bindir = $(prefix)/bin
includedir = $(prefix)/include
-BINARIES = mkmultiarch multiarch-platform multiarch-dispatch
+RPM_MACRO_FILES = macros.multiarch
+RPM_BIN_FILES = mkmultiarch
+BINARIES = multiarch-platform multiarch-dispatch
INCLUDES = multiarch-dispatch.h
OTHER_FILES = Makefile multiarch-utils.spec ChangeLog
-FILES = $(BINARIES) $(INCLUDES) $(OTHER_FILES)
+FILES = $(RPM_MACRO_FILES) $(RPM_BIN_FILES) $(BINARIES) $(INCLUDES) $(OTHER_FILES)
PACKAGE = multiarch-utils
VERSION := $(shell rpm -q --qf %{VERSION} --specfile $(PACKAGE).spec)
@@ -29,10 +31,14 @@ clean: cleandist
rm -f *~
install:
+ -mkdir -p $(DESTDIR)/etc/rpm
+ install -m644 $(RPM_MACRO_FILES) $(DESTDIR)/etc/rpm/
+ -mkdir -p $(DESTDIR)$(prefix)/lib/rpm
+ install -m755 $(RPM_BIN_FILES) $(DESTDIR)$(prefix)/lib/rpm/
-mkdir -p $(DESTDIR)$(bindir)
- cp -p $(BINARIES) $(DESTDIR)$(bindir)
+ install -m755 $(BINARIES) $(DESTDIR)$(bindir)/
-mkdir -p $(DESTDIR)$(includedir)
- cp -p $(INCLUDES) $(DESTDIR)$(includedir)
+ install -m644 $(INCLUDES) $(DESTDIR)$(includedir)/
# rules to build a test rpm