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
|
|
|
|
2005-02-06 17:35:00 +00:00
|
|
|
ALL_LINGUAS = bg cs da de es fi fr it nl no pl 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 \
|
2006-05-26 12:55:50 +00:00
|
|
|
../backend/genesys.c \
|
|
|
|
../backend/gt68xx.c ../backend/gt68xx_low.h ../backend/hp5400_sane.c \
|
|
|
|
../backend/hp-option.c ../backend/hp-option.h \
|
|
|
|
../backend/leo.c ../backend/leo.h ../backend/lexmark.h \
|
2003-02-24 21:11:02 +00:00
|
|
|
../backend/ma1509.c \
|
2006-05-26 12:55:50 +00:00
|
|
|
../backend/matsushita.c ../backend/matsushita.h \
|
2003-01-09 00:51:51 +00:00
|
|
|
../backend/microtek2.c ../backend/microtek2.h \
|
2006-05-26 12:55:50 +00:00
|
|
|
../backend/mustek.c ../backend/mustek_usb.c ../backend/mustek_usb2.c \
|
2004-08-03 07:55:59 +00:00
|
|
|
../backend/niash.c \
|
2006-05-26 12:55:50 +00:00
|
|
|
../backend/pixma.c ../backend/pixma_sane_options.c \
|
2004-08-03 07:55:59 +00:00
|
|
|
../backend/plustek.c ../backend/plustek_pp.c \
|
|
|
|
../backend/pnm.c \
|
2006-05-26 12:55:50 +00:00
|
|
|
../backend/sceptre.c ../backend/sceptre.h ../backend/sm3840.c \
|
|
|
|
../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/u12.c ../backend/umax1220u.c \
|
|
|
|
../backend/umax.c ../backend/umax_pp.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@
|
2005-07-15 21:59:25 +00:00
|
|
|
VPATH = @srcdir@
|
2002-01-07 22:13:09 +00:00
|
|
|
|
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
|
2005-07-09 12:58:20 +00:00
|
|
|
@$(XGETTEXT) -dsane-backends -kSANE_I18N --flag=SANE_I18N:1:no-c-format $(TMP_FILE_DIR)/*.*
|
2002-12-02 21:04:26 +00:00
|
|
|
@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
|