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