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