include ../Makedefs
OBJS = checkpo.o po2strings.o strings2po.o translate.o
TARGETS = checkpo po2strings strings2po translate
all: $(TARGETS)
clean:
$(RM) $(TARGETS) $(OBJS)
depend:
makedepend -Y -I.. -fDependencies $(OBJS:.o=.c) >/dev/null 2>&1
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: $(UNINSTALL_LANGUAGES)
uninstall-languages:
-for loc in $(LANGUAGES) ; do \
$(RM) $(LOCALEDIR)/$$loc/cups_$$loc.po ; \
done
pot:
echo Updating cups.pot...
mv cups.pot cups.pot.bck
touch cups.pot
cd ..; xgettext -o locale/cups.pot -j -s --keyword=_ --no-wrap \
--copyright-holder="Easy Software Products" \
--msgid-bugs-address="http://www.cups.org/str.php" \
*/*.c
(cat cups.header; \
cat cups.pot | sed -e '1,6d' -e '1,$$s/PACKAGE VERSION/CUPS 1.3/' \
-e '1,$$s/charset=CHARSET/charset=utf-8/'; \
cat cups.footer) > cups.pot.N
mv cups.pot.N cups.pot
for loc in $(LANGUAGES) ; do \
echo Merging changes into cups_$$loc.po... ; \
msgmerge -o cups_$$loc.po -s -N --no-location cups_$$loc.po cups.pot ; \
done
checkpo: checkpo.o ../cups/$(LIBCUPS)
echo Linking $<...
$(CC) $(LDFLAGS) -o checkpo checkpo.o $(LIBS)
po2strings: po2strings.o ../cups/$(LIBCUPS)
echo Linking $<...
$(CC) $(LDFLAGS) -o po2strings po2strings.o $(LIBS)
strings2po: strings2po.o
echo Linking $<...
$(CC) $(LDFLAGS) -o strings2po strings2po.o
translate: translate.o ../cups/$(LIBCUPS)
echo Linking $<...
$(CC) $(LDFLAGS) -o translate translate.o $(LIBS)
include Dependencies