Makefile revision 11198
10139N/A##
10139N/A# Makefile for generateing .po tarballs for Sun UI strings.
10139N/A#
12147N/A# Generates : $(PACKAGE)-po-sun-$(PO_VERSION).tar.bz2
10139N/A# e.g. po-sun-tarballs/*.tar.bz2
10139N/A#
10139N/A# Usage :
10139N/A# "make clean" : Remove previous tarballs
10139N/A#
10139N/A# "make" : Update all .po tarballs
10139N/A#
10139N/A# "make check-used" : Outputs list of .po not being used.
16665N/A#
10139N/A# "make check-version" : Prints current .po tarball version
10139N/A#
10139N/A# "make $(PACKAGE)-po-sun-$(PO_VERSION).tar.bz2
10139N/A# e.g. "make gnome-panel-po-sun-0.1.tar.bz2"
16134N/A# will only generate gnome-panel's .po tarball
10139N/A#
16360N/A# For each package that contains .po files.
16428N/A# - Ensure all .po files for your package are located under the
16428N/A# correct .po package dir i.e.
16428N/A# $package/ja.po
16428N/A#
16428N/A# - Add Package name to PACKAGES Variable
10491N/A# e.g. PACKAGES = \
12088N/A# gnome-panel \
10139N/A# your-package
12088N/A#
10139N/A# - Add two package specific variables
12088N/A# PACKAGE_PAGES - Full path of all po for this package
12176N/A# e.g. gnome-panel_PAGES = gnome-panel
12196N/A# PACKAGE.PAGES - Assigned to $(PACKAGE_PAGES).
12306N/A# e.g. gnome-panel.PAGES: $(gnome-panel_PAGES)
12368N/A#
13088N/A#
13278N/A# To Add new .po files to existing packages
14363N/A# -----------------------------------------
14363N/A# Put very simply, all that is required from engineers is to make some changes
16599N/A# and commit in SVN.
16642N/A#
16665N/A# - Ensure the .po file exists in SVN under the relevant package dir
16665N/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
10139N/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 dasher \
10139N/A ekiga \
10139N/A eog \
10139N/A evince \
10139N/A evolution \
10139N/A file-roller \
10139N/A gaim \
10139N/A gcalctool \
12819N/A gdm \
12288N/A gedit \
15377N/A gimp \
14363N/A glade \
15959N/A gnome-control-center \
16642N/A gnome-desktop \
10139N/A gnome-media \
10139N/A gnome-menus \
10139N/A gnome-panel \
10139N/A gnome-pilot \
10139N/A gnome-system-monitor \
10139N/A gnome-system-tools \
10139N/A gnome-terminal \
10139N/A gnome-utils \
10139N/A gok \
10139N/A gthumb \
10139N/A gtk2 \
10139N/A gtkam \
10139N/A gucharmap \
10139N/A libwnck \
10139N/A metacity \
10139N/A nautilus \
10139N/A printman \
10139N/A sound-juicer \
10139N/A totem
10318N/A
10318N/Aall: TARBALLS
10318N/A
10318N/Agnome-control-center_PAGES = gnome-control-center/po-sun
10318N/Agnome-control-center.PAGES: $(gnome-control-center_PAGES)
10318N/A
10318N/Adasher_PAGES = dasher/po-sun
10139N/Adasher.PAGES: $(dasher_PAGES)
12140N/A
16309N/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/Agaim_PAGES = gaim/po-sun
10139N/Agaim.PAGES: $(gaim_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
10139N/Agnome-desktop.PAGES: $(gnome-desktop_PAGES)
10139N/A
10139N/Agnome-media_PAGES = gnome-media/po-sun
10139N/Agnome-media.PAGES: $(gnome-media_PAGES)
10139N/A
10139N/Agnome-menus_PAGES = gnome-menus/po-sun
10139N/Agnome-menus.PAGES: $(gnome-menus_PAGES)
16667N/A
16667N/Agnome-panel_PAGES = gnome-panel/po-sun
16667N/Agnome-panel.PAGES: $(gnome-panel_PAGES)
16667N/A
16653N/Agnome-pilot_PAGES = gnome-pilot/po-sun
16653N/Agnome-pilot.PAGES: $(gnome-pilot_PAGES)
16367N/A
16367N/Agnome-system-monitor_PAGES = gnome-system-monitor/po-sun
16309N/Agnome-system-monitor.PAGES: $(gnome-system-monitor_PAGES)
16309N/A
16134N/Agnome-system-tools_PAGES = gnome-system-tools/po-sun
16134N/Agnome-system-tools.PAGES: $(gnome-system-tools_PAGES)
16030N/A
16030N/Agnome-terminal_PAGES = gnome-terminal/po-sun
15959N/Agnome-terminal.PAGES: $(gnome-terminal_PAGES)
15959N/A
15880N/Agnome-utils_PAGES = gnome-utils/po-sun
15880N/Agnome-utils.PAGES: $(gnome-utils_PAGES)
15860N/A
15860N/Agok_PAGES = gok/po-sun
15838N/Agok.PAGES: $(gok_PAGES)
15838N/A
15613N/Agthumb_PAGES = gthumb/po-sun
15613N/Agthumb.PAGES: $(gthumb_PAGES)
15613N/A
15521N/Agtk2_PAGES = gtk2/po-sun
15521N/Agtk2.PAGES: $(gtk2_PAGES)
15521N/A
15448N/Agtkam_PAGES = gtkam/po-sun
15448N/Agtkam.PAGES: $(gtkam_PAGES)
15448N/A
15448N/Agucharmap_PAGES = gucharmap/po-sun
14363N/Agucharmap.PAGES: $(gucharmap_PAGES)
14363N/A
14196N/Alibwnck_PAGES = libwnck/po-sun
14196N/Alibwnck.PAGES: $(libwnck_PAGES)
14136N/A
14136N/Ametacity_PAGES = metacity/po-sun
13910N/Ametacity.PAGES: $(metacity_PAGES)
13910N/A
13910N/Anautilus_PAGES = nautilus/po-sun
13876N/Anautilus.PAGES: $(nautilus_PAGES)
13876N/A
13791N/Aprintman_PAGES = printman/po-sun
13791N/Aprintman.PAGES: $(printman_PAGES)
13620N/A
13620N/Asound-juicer_PAGES = sound-juicer/po-sun
13519N/Asound-juicer.PAGES: $(sound-juicer_PAGES)
13519N/A
13497N/Atotem_PAGES = totem/po-sun
13497N/Atotem.PAGES: $(totem_PAGES)
13400N/A
13400N/ATARBALL_DIR_SUFFIX = po-sun-$(PO_VERSION)
13278N/A
13278N/A.SUFFIXES: -$(TARBALL_DIR_SUFFIX).tar.bz2 .PAGES
13278N/A.SUFFIXES: .check-used .PAGES
13109N/A
13109N/ATARBALLS = $(TARBALL_DIR)/$(addsuffix -$(TARBALL_DIR_SUFFIX).tar.bz2, $(PACKAGES))
13088N/A
13088N/A
13088N/ATARBALLS:
13088N/A @test -d $(TARBALL_DIR) || mkdir -p "$(TARBALL_DIR)"
13055N/A @test -x $(BZIP2) || echo "bzip2 utility not found"
13055N/A @for package in $(PACKAGES); do \
12819N/A if test ! -f $(TARBALL_DIR)/$$package-$(TARBALL_DIR_SUFFIX).tar.bz2; then \
12819N/A $(MAKE) MAKE=\"$(MAKE)\" $$package-$(TARBALL_DIR_SUFFIX).tar.bz2; \
12812N/A fi; \
12812N/A done
12811N/A
12811N/A%-$(TARBALL_DIR_SUFFIX).tar.bz2: %.PAGES
12765N/A @test -d $(TARBALL_DIR) || mkdir -p "$(TARBALL_DIR)"
12765N/A @if test -f $(TARBALL_DIR)/$@; then \
12746N/A rm -f $(TARBALL_DIR)/$@; \
12746N/A fi
12619N/A @test -d $(PO_DIR) || mkdir -p "$(PO_DIR)"
12619N/A @rm -rf $(PO_DIR)/*
12619N/A @for po_dir in $($(subst .PAGES,_PAGES,$<)); do \
12584N/A cp -R $$po_dir "$(PO_DIR)"; \
12584N/A base_po_dir=`basename $$po_dir`; \
12468N/A cp Makefile.template "$(PO_DIR)"/$$base_po_dir/Makefile; \
12468N/A done;
12368N/A @cd "$(PO_DIR)"; \
12368N/A tarball=`basename "$@" .bz2`; echo "Making tarball $$tarball"; \
12368N/A $(TAR) -cf ../$(TARBALL_DIR)/$$tarball *; \
12287N/A $(BZIP2) ../$(TARBALL_DIR)/$$tarball; \
12287N/A cd ..
12246N/A @rm -rf $(PO_DIR)
12246N/A
12196N/Acheck-used:
12196N/A @test -d check-used-po-sun || mkdir -p "check-used-po-sun"
12765N/A @test -d check-all-po-sun || mkdir -p "check-all-po-sun"
12176N/A @rm -f unused-po-sun.txt
12176N/A @for package in $(PACKAGES); do \
12147N/A $(MAKE) MAKE=\"$(MAKE)\" $$package.check-used; \
12152N/A done
12140N/A @rm -rf check-all-po-sun
12140N/A @rm -rf check-used-po-sun
12095N/A
12096N/A%.check-used: %.PAGES
12096N/A @for package in $($(subst .PAGES,_PAGES,$<)); do \
12093N/A touch check-used-po-sun/$$package; \
12093N/A done
12092N/A
12092N/Acheck-version:
12088N/A @echo $(PO_VERSION)
12088N/A
11989N/Aclean:
11989N/A rm -rf $(PO_DIR)
11884N/A rm -rf $(TARBALL_DIR)
11884N/A
11416N/A