2002-12-04 18:27:29 +00:00
|
|
|
# @configure_input@
|
|
|
|
#
|
2002-01-09 23:45:01 +00:00
|
|
|
# See po/README for documentation.
|
2002-01-07 22:13:09 +00:00
|
|
|
|
2003-08-22 17:55:50 +00:00
|
|
|
ALL_LINGUAS = bg cs de es fr it nl no pt ru sv
|
2002-12-02 21:04:26 +00:00
|
|
|
|
|
|
|
SRC_FILES = ../include/sane/saneopts.h ../backend/artec_eplus48u.c \
|
|
|
|
../backend/avision.h \
|
|
|
|
../backend/canon630u.c ../backend/epson.c ../backend/epson.h \
|
2003-04-27 12:55:20 +00:00
|
|
|
../backend/gt68xx.c ../backend/hp5400.c ../backend/leo.c ../backend/leo.h \
|
2003-02-24 21:11:02 +00:00
|
|
|
../backend/ma1509.c \
|
2002-12-02 21:04:26 +00:00
|
|
|
../backend/matsushita.c ../backend/matsushita.h ../backend/mustek.c \
|
2003-01-09 00:51:51 +00:00
|
|
|
../backend/microtek2.c ../backend/microtek2.h \
|
2003-09-25 12:06:22 +00:00
|
|
|
../backend/mustek_usb.c ../backend/plustek.c ../backend/plustek_pp.c \
|
|
|
|
../backend/pnm.c \
|
2002-12-02 21:04:26 +00:00
|
|
|
../backend/sceptre.c ../backend/sceptre.h ../backend/snapscan.c \
|
|
|
|
../backend/snapscan-options.c ../backend/teco1.c ../backend/teco1.h \
|
|
|
|
../backend/teco2.c ../backend/teco2.h ../backend/teco3.c \
|
|
|
|
../backend/teco3.h ../backend/test.c ../backend/umax1220u.c \
|
2003-07-24 18:31:11 +00:00
|
|
|
../backend/umax.c ../backend/umax_pp.c \
|
|
|
|
../backend/hp-option.h ../backend/hp-option.c
|
|
|
|
|
2002-12-02 21:04:26 +00:00
|
|
|
|
2003-02-06 21:26:16 +00:00
|
|
|
DISTFILES = Makefile.in README template.po \
|
|
|
|
$(foreach lang,$(ALL_LINGUAS),sane-backends.$(lang).po)
|
2002-12-02 21:04:26 +00:00
|
|
|
|
|
|
|
# End of configuration section
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
2002-01-07 22:13:09 +00:00
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
datadir = @datadir@
|
|
|
|
localedir = $(datadir)/locale
|
|
|
|
gnulocaledir = $(prefix)/share/locale
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
|
2002-01-08 19:06:54 +00:00
|
|
|
PACKAGE = @PACKAGE@
|
|
|
|
VERSION = @VERSION@
|
|
|
|
distdir = $(top_srcdir)/$(PACKAGE)-$(VERSION)
|
|
|
|
|
2002-01-21 21:51:43 +00:00
|
|
|
INSTALL_TRANSLATIONS = @INSTALL_TRANSLATIONS@
|
|
|
|
ifeq ($(INSTALL_TRANSLATIONS),install-translations)
|
|
|
|
UNINSTALL_TRANSLATIONS = uninstall-translations
|
2002-12-02 21:04:26 +00:00
|
|
|
ALL = all-mos
|
2002-01-21 21:51:43 +00:00
|
|
|
endif
|
|
|
|
|
2002-01-07 22:13:09 +00:00
|
|
|
MKDIR = $(top_srcdir)/mkinstalldirs
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
|
2002-11-03 16:14:27 +00:00
|
|
|
MSGFMT = @MSGFMT@
|
|
|
|
XGETTEXT = @XGETTEXT@
|
|
|
|
MSGMERGE = @MSGMERGE@
|
2002-01-09 23:45:01 +00:00
|
|
|
|
2002-01-07 22:13:09 +00:00
|
|
|
TMP_FILE_DIR = .tmp
|
2002-01-09 23:45:01 +00:00
|
|
|
|
2002-02-13 20:48:29 +00:00
|
|
|
DISTCLEAN_FILES = @DISTCLEAN_FILES@
|
|
|
|
|
2002-01-08 19:06:54 +00:00
|
|
|
.PHONY: all clean depend dist distclean install install-translations \
|
2003-02-06 21:26:16 +00:00
|
|
|
uninstall uninstall-translations all-mos update
|
2002-01-07 22:13:09 +00:00
|
|
|
|
2002-12-02 21:04:26 +00:00
|
|
|
all: $(ALL)
|
2002-01-21 21:51:43 +00:00
|
|
|
|
2002-12-02 21:04:26 +00:00
|
|
|
all-mos: $(foreach lang,$(ALL_LINGUAS),sane-backends.$(lang).mo)
|
2002-07-30 16:44:26 +00:00
|
|
|
|
2002-12-02 21:04:26 +00:00
|
|
|
%.mo: %.po
|
|
|
|
@echo "generating $@ from $^"
|
|
|
|
@$(MSGFMT) -o $@ $^
|
2002-01-07 22:13:09 +00:00
|
|
|
|
2002-12-02 21:04:26 +00:00
|
|
|
sane-backends.pot: $(SRC_FILES)
|
|
|
|
@echo "creating $@ from $^"
|
2002-01-07 22:13:09 +00:00
|
|
|
@rm -rf $(TMP_FILE_DIR)
|
|
|
|
@mkdir $(TMP_FILE_DIR) && \
|
|
|
|
for file in $^ ; do \
|
|
|
|
sed < $${file} -e 's/#define//g' \
|
2002-01-09 23:45:01 +00:00
|
|
|
> $(TMP_FILE_DIR)/`basename $${file}` ; \
|
|
|
|
done
|
2002-12-02 21:04:26 +00:00
|
|
|
@$(XGETTEXT) -dsane-backends -kSANE_I18N $(TMP_FILE_DIR)/*.*
|
|
|
|
@mv sane-backends.po sane-backends.pot
|
|
|
|
|
2003-02-06 21:26:16 +00:00
|
|
|
update: sane-backends.pot
|
|
|
|
@for lang in $(ALL_LINGUAS) ; do \
|
|
|
|
pofile=sane-backends.$${lang}.po ; \
|
|
|
|
if test ! -f $${pofile} ; then \
|
|
|
|
echo "creating $${pofile}" ; \
|
|
|
|
cp template.po $${pofile} ; \
|
|
|
|
fi ; \
|
|
|
|
echo "updating $${pofile}" ; \
|
|
|
|
cp $${pofile} $${pofile}.old ; \
|
|
|
|
$(MSGMERGE) $${pofile}.old $< -o $${pofile} ; \
|
|
|
|
rm -f $${pofile}.old ; \
|
|
|
|
done
|
2002-01-09 23:45:01 +00:00
|
|
|
|
2002-12-02 21:04:26 +00:00
|
|
|
install-translations:
|
|
|
|
@for lang in $(ALL_LINGUAS) ; do \
|
|
|
|
dir=$(gnulocaledir)/$${lang}/LC_MESSAGES ; \
|
|
|
|
echo "installing sane-backends.$${lang}.mo to $${dir}/sane-backends.mo..." ; \
|
2002-03-29 13:27:16 +00:00
|
|
|
$(MKDIR) $(DESTDIR)$${dir} && \
|
2002-12-02 21:04:26 +00:00
|
|
|
$(INSTALL_DATA) sane-backends.$${lang}.mo $(DESTDIR)$${dir}/sane-backends.mo ; \
|
|
|
|
done
|
2002-01-21 21:51:43 +00:00
|
|
|
|
|
|
|
install: $(INSTALL_TRANSLATIONS)
|
2002-01-09 23:45:01 +00:00
|
|
|
|
|
|
|
uninstall-translations:
|
|
|
|
@for lang in $(ALL_LINGUAS) ; do \
|
|
|
|
dir=$(gnulocaledir)/$${lang}/LC_MESSAGES ; \
|
|
|
|
echo removing $${dir}/sane-*.mo ; \
|
|
|
|
rm -f $${dir}/sane-*.mo ; \
|
|
|
|
done
|
|
|
|
|
2002-01-21 21:51:43 +00:00
|
|
|
uninstall: $(UNINSTALL_TRANSLATIONS)
|
2002-01-07 22:13:09 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.mo
|
|
|
|
rm -f *.old
|
2002-12-02 21:20:25 +00:00
|
|
|
rm -f *.pot
|
2002-01-07 22:13:09 +00:00
|
|
|
|
|
|
|
distclean: clean
|
2002-02-13 20:48:29 +00:00
|
|
|
rm -f $(DISTCLEAN_FILES)
|
2002-01-07 22:13:09 +00:00
|
|
|
rm -f Makefile
|
|
|
|
rm -rf $(TMP_FILE_DIR)
|
|
|
|
|
|
|
|
depend:
|
|
|
|
|
2002-01-08 19:06:54 +00:00
|
|
|
dist: $(DISTFILES)
|
|
|
|
for file in $(DISTFILES); do \
|
|
|
|
ln $$file $(distdir)/po 2> /dev/null \
|
|
|
|
|| cp -p $$file $(distdir)/po ; \
|
|
|
|
done
|