Makefile revision 10656
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# Makefile for generateing .po tarballs for Sun UI strings.
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# Generates : $(PACKAGE)-po-sun-$(PO_VERSION).tar.bz2
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# e.g. po-sun-tarballs/*.tar.bz2
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# "make clean" : Remove previous tarballs
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# "make" : Update all .po tarballs
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# "make check-used" : Outputs list of .po not being used.
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# "make check-version" : Prints current .po tarball version
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# "make $(PACKAGE)-po-sun-$(PO_VERSION).tar.bz2
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# will only generate gnome-panel's .po tarball
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# For each package that contains .po files.
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# - Ensure all .po files for your package are located under the
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# correct .po package dir i.e.
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# - Add Package name to PACKAGES Variable
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# e.g. PACKAGES = \
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# gnome-panel \
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# your-package
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# - Add two package specific variables
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# PACKAGE_PAGES - Full path of all po for this package
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# e.g. gnome-panel_PAGES = gnome-panel
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# PACKAGE.PAGES - Assigned to $(PACKAGE_PAGES).
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# e.g. gnome-panel.PAGES: $(gnome-panel_PAGES)
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# To Add new .po files to existing packages
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# -----------------------------------------
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# Put very simply, all that is required from engineers is to make some changes
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# and commit in SVN.
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# - Ensure the .po file exists in SVN under the relevant package dir
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# - Add .po files to the <package> directory
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# e.g. For a new gnome-panel de.po file it would be added in
392bde20d260cc00dbdf5c80d512f57ebc760c4eJean-Noël Rouvignac# - Remake tarballs
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# $ make clean
392bde20d260cc00dbdf5c80d512f57ebc760c4eJean-Noël Rouvignac# This will re-generate all .po tarballs.
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# - Copy newly generated tarball from po-sun-tarballs to package build
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# sources e.g. /jds/packages/SOURCES, and ensure package builds and po
392bde20d260cc00dbdf5c80d512f57ebc760c4eJean-Noël Rouvignac# install correctly.
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# - New .po tarball will be generated by RE for each nightly, and for each
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# milestone build.
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# - Commit change back to subverison, e.g. new/amended man pagees,
1fafe95ccd49ca4498e4ba0cb8963126de7b69a3Matthew Swift# po-sun/Makefile, po-sun/package/*.po files if affected.
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# PO_VERSION is maintained by L10N and only gets bumped when spec-files gets
e433824f46514e6ed863eb6b95c70038331c8c24Nicolas Capponi# branched. PLEASE do not change this.
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismal# %po_sun_version is also updated in l10n.inc
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismalgnome-system-monitor_PAGES = gnome-system-monitor/po-sun
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismalgnome-system-monitor.PAGES: $(gnome-system-monitor_PAGES)
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismalgnome-system-tools_PAGES = gnome-system-tools/po-sun
1df4f51adf614210ca4a9b9728327090ec5ea264Gaetan Boismalgnome-system-tools.PAGES: $(gnome-system-tools_PAGES)
@if test -f $(TARBALL_DIR)/$@; then \
@echo $(PO_VERSION)