summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-11-18 16:14:48 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-11-18 16:14:48 +0000
commit876056778c7076233ad73d2a4ea9e9d1dd4b3ba3 (patch)
treeda1e33ca6f8aa4aa180653cd233f17f9308d8f7a
parentaf69826f2361bf554d9470eb92253e5ba0985550 (diff)
downloaddrakx-backup-do-not-use-876056778c7076233ad73d2a4ea9e9d1dd4b3ba3.tar
drakx-backup-do-not-use-876056778c7076233ad73d2a4ea9e9d1dd4b3ba3.tar.gz
drakx-backup-do-not-use-876056778c7076233ad73d2a4ea9e9d1dd4b3ba3.tar.bz2
drakx-backup-do-not-use-876056778c7076233ad73d2a4ea9e9d1dd4b3ba3.tar.xz
drakx-backup-do-not-use-876056778c7076233ad73d2a4ea9e9d1dd4b3ba3.zip
allow move to build & install drakx mo files (using sudo)
-rw-r--r--perl-install/Makefile6
-rw-r--r--perl-install/Makefile.drakxtools2
-rw-r--r--perl-install/share/po/Makefile8
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: