summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorYves Duret <yduret@mandriva.com>2002-06-02 07:11:32 +0000
committerYves Duret <yduret@mandriva.com>2002-06-02 07:11:32 +0000
commit5c4349b72d4cbc3d0713f33fa9a7953e24e73dc9 (patch)
treec75a965bf630c3fb92f1e41fe7c13d31a1ca9527 /Makefile
parent9085b6a709c8bbfeb1ee5a1adf38c231ae50a39a (diff)
downloadcontrol-center-5c4349b72d4cbc3d0713f33fa9a7953e24e73dc9.tar
control-center-5c4349b72d4cbc3d0713f33fa9a7953e24e73dc9.tar.gz
control-center-5c4349b72d4cbc3d0713f33fa9a7953e24e73dc9.tar.bz2
control-center-5c4349b72d4cbc3d0713f33fa9a7953e24e73dc9.tar.xz
control-center-5c4349b72d4cbc3d0713f33fa9a7953e24e73dc9.zip
Makefile: use DESTDIR
spec: adaptation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 0e4ad8b5..556bd05b 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ NAME = drakconf
SUBDIRS = po pixmaps
localedir = $(prefix)/usr/share/locale
RPM=$(HOME)/rpm
-mcc_dir = $(RPM_BUILD_ROOT)/usr/share/mcc
+mcc_dir = $(DESTDIR)/usr/share/mcc
override CFLAGS += -DPACKAGE=\"$(NAME)\" -DLOCALEDIR=\"$(localedir)\"
@@ -20,14 +20,14 @@ clean:
install: all
$(MAKE) -C po $@
- install -d $(RPM_BUILD_ROOT)/usr/{X11R6/bin/,share/{icons,doc/$(NAME)-$(VERSION)}}
- install -d $(RPM_BUILD_ROOT)/usr/sbin
- install -d $(RPM_BUILD_ROOT)/$(mcc_dir)
- install -m755 $(NAME) $(RPM_BUILD_ROOT)/usr/X11R6/bin/
- install -m755 clock.pl $(RPM_BUILD_ROOT)/usr/sbin/
- install -m755 menus_launcher.pl $(RPM_BUILD_ROOT)/usr/sbin/
- install -m755 print_launcher.pl $(RPM_BUILD_ROOT)/usr/sbin/
- install -m644 COPYING $(RPM_BUILD_ROOT)/usr/share/doc/$(NAME)-$(VERSION)/
+ install -d $(DESTDIR)/usr/{bin/,share/{icons,doc/$(NAME)-$(VERSION)}}
+ install -d $(DESTDIR)/usr/sbin
+ install -d $(DESTDIR)/$(mcc_dir)
+ install -m755 $(NAME) $(DESTDIR)/usr/bin/
+ install -m755 clock.pl $(DESTDIR)/usr/sbin/
+ install -m755 menus_launcher.pl $(DESTDIR)/usr/sbin/
+ install -m755 print_launcher.pl $(DESTDIR)/usr/sbin/
+ install -m644 COPYING $(DESTDIR)/usr/share/doc/$(NAME)-$(VERSION)/
for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done
dis: clean