aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2003-06-27 18:54:29 +0000
committerDaouda Lo <daouda@mandriva.com>2003-06-27 18:54:29 +0000
commit5bf8b58bfae6fec7532abd381871fc3edde9a6be (patch)
treefba1fca60f941af084d0a68bf0f0bf15f2a5c0b9
parentb103ee3ddf23e590101621dccd1e64895f7099c8 (diff)
downloaduserdrake-5bf8b58bfae6fec7532abd381871fc3edde9a6be.tar
userdrake-5bf8b58bfae6fec7532abd381871fc3edde9a6be.tar.gz
userdrake-5bf8b58bfae6fec7532abd381871fc3edde9a6be.tar.bz2
userdrake-5bf8b58bfae6fec7532abd381871fc3edde9a6be.tar.xz
userdrake-5bf8b58bfae6fec7532abd381871fc3edde9a6be.zip
- meuh
-rw-r--r--Makefile26
1 files changed, 17 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index db8cc23..8f78073 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,15 @@
VERSION = $(shell awk '/define version/ { print $$3 }' $(NAME).spec)
NAME = userdrake
BINNAME = userdrake
+
+PREFIX = /
+DATADIR = $(PREFIX)/usr/share
+ICONSDIR = $(DATADIR)/icons
+SBINDIR = $(PREFIX)/usr/sbin
+BINDIR = $(PREFIX)/usr/bin
+SYSCONFDIR = $(PREFIX)/etc/sysconfig
SBINREL = ../sbin
-BINDIR = /usr/bin
+
SUBDIRS = po
localedir = $(prefix)/usr/share/locale
RPM=$(HOME)/rpm
@@ -19,15 +26,16 @@ clean:
install: all
$(MAKE) -C po $@
- install -d $(RPM_BUILD_ROOT){/etc/sysconfig,/usr/{bin,sbin,share/$(NAME)/pixmaps,share/icons/{mini,large}}}
- install -s -m755 $(NAME) $(RPM_BUILD_ROOT)/usr/sbin/
+ install -d $(PREFIX)/{/etc/sysconfig,usr/{bin,sbin,share/$(NAME)/pixmaps,share/icons/{mini,large}}}
+ install -s -m755 $(NAME) $(SBINDIR)/
ln -sf $(SBINREL)/userdrake $(BINDIR)/userdrake
- install -m644 userdrake.prefs $(RPM_BUILD_ROOT)/etc/sysconfig/userdrake
- install -m644 pixmaps/*.png $(RPM_BUILD_ROOT)/usr/share/$(NAME)/pixmaps
- install -m644 icons/$(NAME)16.png $(RPM_BUILD_ROOT)/usr/share/icons/mini/$(NAME).png
- install -m644 icons/$(NAME)32.png $(RPM_BUILD_ROOT)/usr/share/icons/$(NAME).png
- install -m644 icons/$(NAME)48.png $(RPM_BUILD_ROOT)/usr/share/icons/large/$(NAME).png
- install -m644 icons/*selec*.png $(RPM_BUILD_ROOT)/usr/share/$(NAME)/pixmaps
+ install -d $(SYSCONFDIR)
+ install -m644 userdrake.prefs $(SYSCONFDIR)/userdrake
+ install -m644 pixmaps/*.png $(DATADIR)/$(NAME)/pixmaps
+ install -m644 icons/$(NAME)16.png $(ICONSDIR)/mini/$(NAME).png
+ install -m644 icons/$(NAME)32.png $(ICONSDIR)/$(NAME).png
+ install -m644 icons/$(NAME)48.png $(ICONSDIR)/large/$(NAME).png
+ install -m644 icons/*selec*.png $(DATADIR)/$(NAME)/pixmaps
for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done
dis: clean