4e49143083
- gettext cleanup.
68 lines
2.5 KiB
Plaintext
68 lines
2.5 KiB
Plaintext
$OpenBSD: patch-po_Makefile_in_in,v 1.2 2002/10/12 15:38:23 naddy Exp $
|
|
--- po/Makefile.in.in.orig Mon Apr 30 16:38:22 2001
|
|
+++ po/Makefile.in.in Sat Oct 12 17:31:54 2002
|
|
@@ -24,6 +24,8 @@ gnulocaledir = $(prefix)/share/locale
|
|
gettextsrcdir = $(prefix)/share/gettext/po
|
|
subdir = po
|
|
|
|
+DESTDIR =
|
|
+
|
|
INSTALL = @INSTALL@
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
MKINSTALLDIRS = $(top_srcdir)/@MKINSTALLDIRS@
|
|
@@ -111,9 +113,9 @@ install-data: install-data-@USE_NLS@
|
|
install-data-no: all
|
|
install-data-yes: all
|
|
if test -r "$(MKINSTALLDIRS)"; then \
|
|
- $(MKINSTALLDIRS) $(datadir); \
|
|
+ $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \
|
|
else \
|
|
- $(SHELL) $(top_srcdir)/mkinstalldirs $(datadir); \
|
|
+ $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \
|
|
fi
|
|
@catalogs='$(CATALOGS)'; \
|
|
for cat in $$catalogs; do \
|
|
@@ -123,7 +125,7 @@ install-data-yes: all
|
|
*) destdir=$(localedir);; \
|
|
esac; \
|
|
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
|
|
- dir=$$destdir/$$lang/LC_MESSAGES; \
|
|
+ dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \
|
|
if test -r "$(MKINSTALLDIRS)"; then \
|
|
$(MKINSTALLDIRS) $$dir; \
|
|
else \
|
|
@@ -153,12 +155,12 @@ install-data-yes: all
|
|
done
|
|
if test "$(PACKAGE)" = "gettext"; then \
|
|
if test -r "$(MKINSTALLDIRS)"; then \
|
|
- $(MKINSTALLDIRS) $(gettextsrcdir); \
|
|
+ $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \
|
|
else \
|
|
- $(SHELL) $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \
|
|
+ $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \
|
|
fi; \
|
|
$(INSTALL_DATA) $(srcdir)/Makefile.in.in \
|
|
- $(gettextsrcdir)/Makefile.in.in; \
|
|
+ $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
|
|
else \
|
|
: ; \
|
|
fi
|
|
@@ -171,12 +173,12 @@ uninstall:
|
|
for cat in $$catalogs; do \
|
|
cat=`basename $$cat`; \
|
|
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
|
|
- rm -f $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
|
|
- rm -f $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
|
|
- rm -f $(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
|
|
- rm -f $(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
|
|
+ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
|
|
+ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
|
|
+ rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
|
|
+ rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
|
|
done
|
|
- rm -f $(gettextsrcdir)/po-Makefile.in.in
|
|
+ rm -f $(DESTDIR)$(gettextsrcdir)/po-Makefile.in.in
|
|
|
|
check: all
|
|
|