Makefile revision 10017
10139N/A##
10139N/A# Makefile for generateing .po tarballs for Sun UI strings.
10139N/A#
12208N/A# Generates : $(PACKAGE)-po-sun-$(PO_VERSION).tar.bz2
10139N/A# e.g. po-sun-tarballs/*.tar.bz2
10139N/A#
12352N/A# Usage :
10139N/A# "make clean" : Remove previous tarballs
10139N/A#
10139N/A# "make" : Update all .po tarballs
10139N/A#
13917N/A# "make check-used" : Outputs list of .po not being used.
10139N/A#
10139N/A# "make check-version" : Prints current .po tarball version
10139N/A#
10139N/A# "make $(PACKAGE)-po-sun-$(PO_VERSION).tar.bz2
13264N/A# e.g. "make gnome-panel-po-sun-0.1.tar.bz2"
10139N/A# will only generate gnome-panel's .po tarball
10139N/A#
10139N/A# For each package that contains .po files.
10139N/A# - Ensure all .po files for your package are located under the
10139N/A# correct .po package dir i.e.
10139N/A# $package/ja.po
10139N/A#
10139N/A# - Add Package name to PACKAGES Variable
13064N/A# e.g. PACKAGES = \
10243N/A# gnome-panel \
12316N/A# your-package
12316N/A#
10139N/A# - Add two package specific variables
10139N/A# PACKAGE_PAGES - Full path of all po for this package
10139N/A# e.g. gnome-panel_PAGES = gnome-panel
10139N/A# PACKAGE.PAGES - Assigned to $(PACKAGE_PAGES).
10139N/A# e.g. gnome-panel.PAGES: $(gnome-panel_PAGES)
10139N/A#
11393N/A#
10139N/A# To Add new .po files to existing packages
10139N/A# -----------------------------------------
10139N/A# Put very simply, all that is required from engineers is to make some changes
10139N/A# and commit in SVN.
10139N/A#
10139N/A# - Ensure the .po file exists in SVN under the relevant package dir
10139N/A# - Add .po files to the <package> directory
10139N/A# e.g. For a new gnome-panel de.po file it would be added in
10139N/A# gnome-panel/de.po
10139N/A# - Remake tarballs
10139N/A# $ make clean
10139N/A# $ make
10139N/A# This will re-generate all .po tarballs.
10139N/A# - Copy newly generated tarball from po-sun-tarballs to package build
10139N/A# sources e.g. /jds/packages/SOURCES, and ensure package builds and po
10139N/A# install correctly.
10139N/A# - New .po tarball will be generated by RE for each nightly, and for each
10139N/A# milestone build.
10139N/A# - Commit change back to subverison, e.g. new/amended man pagees,
10139N/A# po-sun/Makefile, po-sun/package/*.po files if affected.
10139N/A#
10139N/A#
10139N/A# PO_VERSION is maintained by L10N and only gets bumped when spec-files gets
10139N/A# branched. PLEASE do not change this.
10139N/A# %po_sun_version is also updated in l10n.inc
10139N/A#
10139N/A
10139N/APO_VERSION=0.1
10243N/APO_DIR=po-sun
10139N/ATARBALL_DIR=po-sun-tarballs
10139N/ABZIP2=/usr/bin/bzip2
10139N/ATAR=/usr/bin/tar
10139N/AAWK=/usr/bin/awk
10139N/AMAKE=/usr/sfw/bin/gmake
10139N/A
10139N/APACKAGES = \
10139N/A control-center \
10139N/A dasher \
10139N/A ekiga \
10139N/A eog \
10139N/A evince \
12805N/A evolution \
12805N/A file-roller \
12805N/A gcalctool \
12805N/A gdm \
12805N/A gedit \
10139N/A gimp \
10139N/A glade \
10139N/A gnome-desktop \
10139N/A gnome-menus \
10139N/A gnome-panel \
10139N/A gnome-pilot \
10139N/A gnome-system-monitor \
10139N/A gnome-terminal \
10139N/A gnome-utils \
10139N/A gok \
10139N/A gtk2 \
10139N/A gtkam \
10139N/A gucharmap \
11393N/A libwnck \
11393N/A metacity \
11393N/A nautilus \
10139N/A sound-juicer \
10139N/A totem
10139N/A
10139N/Aall: TARBALLS
10139N/A
10139N/Acontrol-center_PAGES = control-center/po-sun
10139N/Acontrol-center.PAGES: $(control-center_PAGES)
10139N/A
10139N/Adasher_PAGES = dasher/po-sun
10139N/Adasher.PAGES: $(dasher_PAGES)
10139N/A
10139N/Aekiga_PAGES = ekiga/po-sun
10139N/Aekiga.PAGES: $(ekiga_PAGES)
10139N/A
10139N/Aeog_PAGES = eog/po-sun
10139N/Aeog.PAGES: $(eog_PAGES)
10139N/A
10139N/Aevince_PAGES = evince/po-sun
10139N/Aevince.PAGES: $(evince_PAGES)
10139N/A
10139N/Aevolution_PAGES = evolution/po-sun
10139N/Aevolution.PAGES: $(evolution_PAGES)
10139N/A
10139N/Afile-roller_PAGES = file-roller/po-sun
10139N/Afile-roller.PAGES: $(file-roller_PAGES)
10139N/A
10139N/Agcalctool_PAGES = gcalctool/po-sun
10139N/Agcalctool.PAGES: $(gcalctool_PAGES)
10139N/A
10139N/Agdm_PAGES = gdm/po-sun
10139N/Agdm.PAGES: $(gdm_PAGES)
10139N/A
10139N/Agedit_PAGES = gedit/po-sun
10139N/Agedit.PAGES: $(gedit_PAGES)
10139N/A
10139N/Agimp_PAGES = gimp/po-sun
10139N/Agimp.PAGES: $(gimp_PAGES)
10139N/A
10139N/Aglade_PAGES = glade/po-sun
10139N/Aglade.PAGES: $(glade_PAGES)
10139N/A
10139N/Agnome-desktop_PAGES = gnome-desktop/po-sun
13917N/Agnome-desktop.PAGES: $(gnome-desktop_PAGES)
13917N/A
13769N/Agnome-menus_PAGES = gnome-menus/po-sun
13769N/Agnome-menus.PAGES: $(gnome-menus_PAGES)
13769N/A
13415N/Agnome-panel_PAGES = gnome-panel/po-sun
13415N/Agnome-panel.PAGES: $(gnome-panel_PAGES)
13415N/A
13259N/Agnome-pilot_PAGES = gnome-pilot/po-sun
13264N/Agnome-pilot.PAGES: $(gnome-pilot_PAGES)
13264N/A
13264N/Agnome-system-monitor_PAGES = gnome-system-monitor/po-sun
13259N/Agnome-system-monitor.PAGES: $(gnome-system-monitor_PAGES)
13259N/A
12813N/Agnome-terminal_PAGES = gnome-terminal/po-sun
12813N/Agnome-terminal.PAGES: $(gnome-terminal_PAGES)
12813N/A
12805N/Agnome-utils_PAGES = gnome-utils/po-sun
12805N/Agnome-utils.PAGES: $(gnome-utils_PAGES)
12805N/A
12805N/Agok_PAGES = gok/po-sun
12805N/Agok.PAGES: $(gok_PAGES)
12571N/A
12571N/Agtk2_PAGES = gtk2/po-sun
12571N/Agtk2.PAGES: $(gtk2_PAGES)
12467N/A
12467N/Agtkam_PAGES = gtkam/po-sun
12467N/Agtkam.PAGES: $(gtkam_PAGES)
12360N/A
12360N/Agucharmap_PAGES = gucharmap/po-sun
12360N/Agucharmap.PAGES: $(gucharmap_PAGES)
12316N/A
12316N/Alibwnck_PAGES = libwnck/po-sun
12316N/Alibwnck.PAGES: $(libwnck_PAGES)
12316N/A
12208N/Ametacity_PAGES = metacity/po-sun
12208N/Ametacity.PAGES: $(metacity_PAGES)
12208N/A
12022N/Anautilus_PAGES = nautilus/po-sun
12022N/Anautilus.PAGES: $(nautilus_PAGES)
12022N/A
11912N/Asound-juicer_PAGES = sound-juicer/po-sun
11912N/Asound-juicer.PAGES: $(sound-juicer_PAGES)
11912N/A
11393N/Atotem_PAGES = totem/po-sun
11393N/Atotem.PAGES: $(totem_PAGES)
11393N/A
11393N/ATARBALL_DIR_SUFFIX = po-sun-$(PO_VERSION)
11393N/A
11393N/A.SUFFIXES: -$(TARBALL_DIR_SUFFIX).tar.bz2 .PAGES
11252N/A.SUFFIXES: .check-used .PAGES
11252N/A
11252N/ATARBALLS = $(TARBALL_DIR)/$(addsuffix -$(TARBALL_DIR_SUFFIX).tar.bz2, $(PACKAGES))
11169N/A
11169N/A
11169N/ATARBALLS:
10986N/A @test -d $(TARBALL_DIR) || mkdir -p "$(TARBALL_DIR)"
10986N/A @test -x $(BZIP2) || echo "bzip2 utility not found"
10986N/A @for package in $(PACKAGES); do \
10972N/A if test ! -f $(TARBALL_DIR)/$$package-$(TARBALL_DIR_SUFFIX).tar.bz2; then \
10972N/A $(MAKE) MAKE=\"$(MAKE)\" $$package-$(TARBALL_DIR_SUFFIX).tar.bz2; \
10972N/A fi; \
10961N/A done
10961N/A
10961N/A%-$(TARBALL_DIR_SUFFIX).tar.bz2: %.PAGES
10265N/A @test -d $(TARBALL_DIR) || mkdir -p "$(TARBALL_DIR)"
10265N/A @if test -f $(TARBALL_DIR)/$@; then \
10265N/A rm -f $(TARBALL_DIR)/$@; \
10180N/A fi
10180N/A @test -d $(PO_DIR) || mkdir -p "$(PO_DIR)"
10180N/A @rm -rf $(PO_DIR)/*
10139N/A @for po_dir in $($(subst .PAGES,_PAGES,$<)); do \
10139N/A cp -R $$po_dir "$(PO_DIR)"; \
10139N/A base_po_dir=`basename $$po_dir`; \
10139N/A cp Makefile.template "$(PO_DIR)"/$$base_po_dir/Makefile; \
10139N/A done;
10139N/A @cd "$(PO_DIR)"; \
10139N/A tarball=`basename "$@" .bz2`; echo "Making tarball $$tarball"; \
10139N/A $(TAR) -cf ../$(TARBALL_DIR)/$$tarball *; \
10139N/A $(BZIP2) ../$(TARBALL_DIR)/$$tarball; \
10139N/A cd ..
10139N/A @rm -rf $(PO_DIR)
10139N/A
10139N/Acheck-used:
10139N/A @test -d check-used-po-sun || mkdir -p "check-used-po-sun"
10139N/A @test -d check-all-po-sun || mkdir -p "check-all-po-sun"
10139N/A @rm -f unused-po-sun.txt
10139N/A @for package in $(PACKAGES); do \
10139N/A $(MAKE) MAKE=\"$(MAKE)\" $$package.check-used; \
10139N/A done
10139N/A @rm -rf check-all-po-sun
10139N/A @rm -rf check-used-po-sun
10139N/A
10139N/A%.check-used: %.PAGES
10139N/A @for package in $($(subst .PAGES,_PAGES,$<)); do \
10139N/A touch check-used-po-sun/$$package; \
10139N/A done
10139N/A
10139N/Acheck-version:
10139N/A @echo $(PO_VERSION)
10139N/A
10139N/Aclean:
10139N/A rm -rf $(PO_DIR)
10139N/A rm -rf $(TARBALL_DIR)
10139N/A
10139N/A