From 876056778c7076233ad73d2a4ea9e9d1dd4b3ba3 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 18 Nov 2003 16:14:48 +0000 Subject: allow move to build & install drakx mo files (using sudo) --- perl-install/Makefile | 6 ++++-- perl-install/Makefile.drakxtools | 2 +- perl-install/share/po/Makefile | 8 +++++--- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/perl-install/Makefile b/perl-install/Makefile index 4bb73feb2..3cec2cc0b 100644 --- a/perl-install/Makefile +++ b/perl-install/Makefile @@ -80,7 +80,9 @@ install_pms: $(DIRS) chmod a+x $(DESTREP4PMS)/g_auto_install chmod a+x $(DESTREP4PMS)/live_install* -get_needed_files: $(DIRS) $(MOFILES) +mo_files : $(MOFILES) + +get_needed_files: $(DIRS) mo_files $(MAKE) -C share @if rpm -q XFree86-VGA16 | grep -q 29mdk; then echo "XFree86-VGA16 29mdk is bad, downgrade to 28mdk" ; exit 1 ; fi @@ -183,7 +185,7 @@ endif for i in ../kernel/modules.description ../kernel/all.modules/modules.cz*; do cp -f $$i $(DEST)/lib/; done - $(MAKE) -C share/po install NAME=libDrakX LOCALEDIR=$(DEST)/usr/share/locale_special + $(MAKE) -C share/po install SUDO= NAME=libDrakX LOCALEDIR=$(DEST)/usr/share/locale_special # ar and fa are disabled as arabic font doesn't work on install # ga and sl are disabled because too few messages are translated diff --git a/perl-install/Makefile.drakxtools b/perl-install/Makefile.drakxtools index 42ec03111..676277c49 100644 --- a/perl-install/Makefile.drakxtools +++ b/perl-install/Makefile.drakxtools @@ -48,7 +48,7 @@ install: echo 'RESTRICT=yes' > $(PREFIX)/etc/security/fileshare.conf for i in $(HAVEINST_DIRS); do \ - $(MAKE) -C $$i install PREFIX=$(PREFIX) DATADIR=$(DATADIR) NAME=$(NAME) ; \ + $(MAKE) -C $$i install PREFIX=$(PREFIX) SUDO= DATADIR=$(DATADIR) NAME=$(NAME) ; \ done find auto -follow -name .exists -o -name "*.bs" | xargs rm -f diff --git a/perl-install/share/po/Makefile b/perl-install/share/po/Makefile index ad4860d9b..660ab1ccb 100644 --- a/perl-install/share/po/Makefile +++ b/perl-install/share/po/Makefile @@ -9,7 +9,9 @@ LANGS = $(POFILES:%.po=%) LOCALEDIR=$(DATADIR)/locale -all: help $(MOFILES) +all: help mofiles + +mofiles: $(MOFILES) help: @if [ ! -d doc ]; then \ @@ -37,8 +39,8 @@ DrakX.pot: $(PMSFILES) install: for l in $(LANGS); do \ - install -d $(LOCALEDIR)/$$l/LC_MESSAGES; \ - install -m 644 $$l.mo $(LOCALEDIR)/$$l/LC_MESSAGES/$(NAME).mo; \ + $(SUDO) install -d $(LOCALEDIR)/$$l/LC_MESSAGES; \ + $(SUDO) install -m 644 $$l.mo $(LOCALEDIR)/$$l/LC_MESSAGES/$(NAME).mo; \ done clean: -- cgit v1.2.1