summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2005-01-14 17:21:23 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2005-01-14 17:21:23 +0000
commit7d1adebf214f8282e2b920fd17e763efa4c62dfc (patch)
treec533540b49a029c444bff082f77942866b83a465 /Makefile
parentec08777e8291289acec374fa7b91ad3bb4ee1a4f (diff)
downloadmultiarch-utils-7d1adebf214f8282e2b920fd17e763efa4c62dfc.tar
multiarch-utils-7d1adebf214f8282e2b920fd17e763efa4c62dfc.tar.gz
multiarch-utils-7d1adebf214f8282e2b920fd17e763efa4c62dfc.tar.bz2
multiarch-utils-7d1adebf214f8282e2b920fd17e763efa4c62dfc.tar.xz
multiarch-utils-7d1adebf214f8282e2b920fd17e763efa4c62dfc.zip
new files and fix paths
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