1- # $Header: /cvsroot/pgsql/src/nls-global.mk,v 1.7 2002 /09/02 22:19:42 petere Exp $
1+ # $Header: /cvsroot/pgsql/src/nls-global.mk,v 1.8 2003 /09/14 22:40:38 petere Exp $
22
33# Common rules for Native Language Support (NLS)
44#
@@ -42,17 +42,15 @@ endif
4242
4343all-po :$(MO_FILES )
4444
45- distprep :$(srcdir ) /po/$(CATALOG_NAME ) .pot
46-
4745% .mo :% .po
4846$(MSGFMT ) -o$@ $<
4947
5048ifdef XGETTEXT
5149ifeq ($(word 1,$(GETTEXT_FILES ) ) ,+)
52- $( srcdir ) / po/$(CATALOG_NAME ) .pot :$(word 2,$(GETTEXT_FILES ) )
50+ po/$(CATALOG_NAME ) .pot :$(word 2,$(GETTEXT_FILES ) )
5351$(XGETTEXT ) -D$(srcdir ) -n$(addprefix -k,$(GETTEXT_TRIGGERS ) ) -f$<
5452else
55- $( srcdir ) / po/$(CATALOG_NAME ) .pot :$(GETTEXT_FILES )
53+ po/$(CATALOG_NAME ) .pot :$(GETTEXT_FILES )
5654# Change to srcdir explicitly, don't rely on $^. That way we get
5755# consistent #: file references in the po files.
5856$(XGETTEXT) -D $(srcdir) -n $(addprefix -k, $(GETTEXT_TRIGGERS)) $(GETTEXT_FILES)
@@ -81,9 +79,7 @@ uninstall-po:
8179clean-po :
8280rm -f$(MO_FILES )
8381@rm -f$(addsuffix .old,$(PO_FILES ) )
84-
85- maintainer-clean-po : clean-po
86- rm -f$(srcdir ) /po/$(CATALOG_NAME ) .pot
82+ rm -f po/$(CATALOG_NAME ) .pot
8783
8884
8985maintainer-check-po :$(PO_FILES )
@@ -92,10 +88,10 @@ maintainer-check-po: $(PO_FILES)
9288done
9389
9490
95- init-po :$( srcdir ) / po/$(CATALOG_NAME ) .pot
91+ init-po : po/$(CATALOG_NAME ) .pot
9692
9793
98- update-po :$( srcdir ) / po/$(CATALOG_NAME ) .pot
94+ update-po : po/$(CATALOG_NAME ) .pot
9995ifdef MSGMERGE
10096@for lang in $(LANGUAGES); do \
10197 echo "merging $$lang:"; \
@@ -117,10 +113,9 @@ all: all-po
117113install : install-po
118114installdirs : installdirs-po
119115uninstall : uninstall-po
120- clean distclean : clean-po
121- maintainer-clean : maintainer-clean-po
116+ clean distclean maintainer-clean : clean-po
122117maintainer-check : maintainer-check-po
123118
124119.PHONY : all-po install-po installdirs-po uninstall-po clean-po\
125- maintainer-clean-po maintainer- check-po init-po update-po
120+ maintainer-check-po init-po update-po
126121.SILENT : installdirs-po