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