Makefile revision 15522
205c10066a0acfeac52d1a135671f41d207b8557Automatic Updater# Makefile for generateing .po tarballs for Sun UI strings.
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# Generates : $(PACKAGE)-po-sun-$(PO_VERSION).tar.bz2
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# e.g. po-sun-tarballs/*.tar.bz2
cd0aa2d941d1438fabb5337f1f38c49478edf71dAutomatic Updater# "make clean" : Remove previous tarballs
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# "make" : Update all .po tarballs
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# "make check-used" : Outputs list of .po not being used.
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# "make check-version" : Prints current .po tarball version
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic Updater# "make $(PACKAGE)-po-sun-$(PO_VERSION).tar.bz2
58be84825d7f5de30e50eb7206b37227ecd8055bAutomatic Updater# will only generate gnome-panel's .po tarball
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# For each package that contains .po files.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# - Ensure all .po files for your package are located under the
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic Updater# correct .po package dir i.e.
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# - Add Package name to PACKAGES Variable
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# e.g. PACKAGES = \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# gnome-panel \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# - Add two package specific variables
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# PACKAGE_PAGES - Full path of all po for this package
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# e.g. gnome-panel_PAGES = gnome-panel
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# PACKAGE.PAGES - Assigned to $(PACKAGE_PAGES).
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# e.g. gnome-panel.PAGES: $(gnome-panel_PAGES)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# To Add new .po files to existing packages
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# -----------------------------------------
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Put very simply, all that is required from engineers is to make some changes
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# and commit in SVN.
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# - Ensure the .po file exists in SVN under the relevant package dir
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater# - Add .po files to the <package> directory
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater# e.g. For a new gnome-panel de.po file it would be added in
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# - Remake tarballs
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# This will re-generate all .po tarballs.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# - Copy newly generated tarball from po-sun-tarballs to package build
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater# sources e.g. /jds/packages/SOURCES, and ensure package builds and po
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater# install correctly.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# - New .po tarball will be generated by RE for each nightly, and for each
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# milestone build.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# - Commit change back to subverison, e.g. new/amended man pagees,
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# po-sun/Makefile, po-sun/package/*.po files if affected.
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews# PO_VERSION is maintained by L10N and only gets bumped when spec-files gets
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# branched. PLEASE do not change this.
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# %po_sun_version is also updated in l10n.inc
7f94d9a8162c9a96b56e66176702b66e79d8e1a2Automatic Updatergnome-control-center_PAGES = gnome-control-center/po-sun
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updatergnome-control-center.PAGES: $(gnome-control-center_PAGES)
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updatergnome-desktop.PAGES: $(gnome-desktop_PAGES)
71bd43eebd9d6e42dbcae62b730f5b6508d5acd8Automatic Updatergnome-keyring-manager_PAGES = gnome-keyring-manager/po-sun
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updatergnome-keyring-manager.PAGES: $(gnome-keyring-manager_PAGES)
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updatergnome-netstatus.PAGES: $(gnome-netstatus_PAGES)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsgnome-power-manager_PAGES = gnome-power-manager/po-sun
f7c88d61cc1ad2435b0b7cfaedfc9d5248c0be25Automatic Updatergnome-power-manager.PAGES: $(gnome-power-manager_PAGES)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updatergnome-session_PAGES = gnome-session/po-sun gnome-session/po-logout
957a8884fb712885cdd8ef0474f5ff95ddc46b20Automatic Updatergnome-session.PAGES: $(gnome-session_PAGES)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updatergnome-system-monitor_PAGES = gnome-system-monitor/po-sun
995eaa289ba9709c64ef89b3776e53c36adc0010Automatic Updatergnome-system-monitor.PAGES: $(gnome-system-monitor_PAGES)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updatergnome-system-tools_PAGES = gnome-system-tools/po-sun
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtongnome-system-tools.PAGES: $(gnome-system-tools_PAGES)
cf7e98f59148b559946a7f1ca728471374f1eef3Automatic Updatergnome-terminal_PAGES = gnome-terminal/po-sun
96713299d08c0735c18ebe8772dd2cc1ecd4356aAutomatic Updatergnome-terminal.PAGES: $(gnome-terminal_PAGES)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updatergnome-volume-manager_PAGES = gnome-volume-manager/po-sun
48b36fa08b2b5bc0d552dc2a4425b3f7007b3d59Automatic Updatergnome-volume-manager.PAGES: $(gnome-volume-manager_PAGES)
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updatersystem-config-printer_PAGES = system-config-printer/po-sun
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updatersystem-config-printer.PAGES: $(sound-juicer_PAGES)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater.SUFFIXES: -$(TARBALL_DIR_SUFFIX).tar.bz2 .PAGES
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonTARBALLS = $(TARBALL_DIR)/$(addsuffix -$(TARBALL_DIR_SUFFIX).tar.bz2, $(PACKAGES))
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews @test -d $(TARBALL_DIR) || mkdir -p "$(TARBALL_DIR)"
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @test -x $(BZIP2) || echo "bzip2 utility not found"
b109432c3a939bff66a463be86c371bd88efe3aaAutomatic Updater if test ! -f $(TARBALL_DIR)/$$package-$(TARBALL_DIR_SUFFIX).tar.bz2; then \
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater $(MAKE) MAKE=\"$(MAKE)\" $$package-$(TARBALL_DIR_SUFFIX).tar.bz2; \
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater @test -d $(TARBALL_DIR) || mkdir -p "$(TARBALL_DIR)"
b1265b5a06df36d490d4bdf54284fb133a1f5a84Automatic Updater @if test -f $(TARBALL_DIR)/$@; then \
665ba746c0585088d0c314dcfc4671aa2c7b2dc1Automatic Updater @test -d $(PO_DIR) || mkdir -p "$(PO_DIR)"
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @for po_dir in $($(subst .PAGES,_PAGES,$<)); do \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington cp Makefile.template "$(PO_DIR)"/$$base_po_dir/Makefile; \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington tarball=`basename "$@" .bz2`; echo "Making tarball $$tarball"; \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(TAR) -cf ../$(TARBALL_DIR)/$$tarball *; \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @test -d check-used-po-sun || mkdir -p "check-used-po-sun"
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @test -d check-all-po-sun || mkdir -p "check-all-po-sun"
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(MAKE) MAKE=\"$(MAKE)\" $$package.check-used; \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @for package in $($(subst .PAGES,_PAGES,$<)); do \