#
-# "$Id: Makefile 4965 2006-01-21 06:12:17Z mike $"
+# "$Id$"
#
# Locale file makefile for the Common UNIX Printing System (CUPS).
#
include ../Makedefs
-#
-# Locales...
-#
-
-LOCALES = fr ja
-
#
# Make everything...
$(RM) translate translate.o
+#
+# Update dependencies...
+#
+
+depend:
+
+
#
# Install files...
#
-install: all
- $(INSTALL_DIR) $(LOCALEDIR)
- for loc in $(LOCALES) ; do \
- $(INSTALL_DIR) $(LOCALEDIR)/$$loc ; \
- $(INSTALL_DATA) cups_$$loc.po $(LOCALEDIR)/$$loc/cups_$$loc ; \
+install: all $(INSTALL_LANGUAGES)
+
+install-languages:
+ $(INSTALL_DIR) -m 755 $(LOCALEDIR)
+ for loc in $(LANGUAGES) ; do \
+ if test -f cups_$$loc.po; then \
+ $(INSTALL_DIR) -m 755 $(LOCALEDIR)/$$loc ; \
+ $(INSTALL_DATA) cups_$$loc.po $(LOCALEDIR)/$$loc/cups_$$loc.po ; \
+ fi ; \
+ done
+
+
+#
+# Uninstall files...
+#
+
+uninstall: $(UNINSTALL_LANGUAGES)
+
+uninstall-languages:
+ -for loc in $(LANGUAGES) ; do \
+ $(RM) $(LOCALEDIR)/$$loc/cups_$$loc.po ; \
done
pot:
echo Updating cups.pot...
cd ..; xgettext -o locale/cups.pot -j --keyword=_ --no-wrap \
- --copyright-holder="Easy Software Products" \
+ --no-location --copyright-holder="Easy Software Products" \
--msgid-bugs-address="http://www.cups.org/str.php" \
*/*.c
(cat cups.header; \
-e '1,$$s/charset=CHARSET/charset=utf-8/'; \
cat cups.footer) > cups.pot.N
mv cups.pot.N cups.pot
- for loc in $(LOCALES) ; do \
+ for loc in $(LANGUAGES) ; do \
echo Merging changes into cups_$$loc.po... ; \
- msgmerge -o cups_$$loc.po cups_$$loc.po cups.pot ; \
+ msgmerge -o cups_$$loc.po --no-location cups_$$loc.po cups.pot ; \
done
#
-# End of "$Id: Makefile 4965 2006-01-21 06:12:17Z mike $".
+# End of "$Id$".
#