kopia lustrzana https://gitlab.com/sane-project/backends
Added missing files to DISTFILES.
Fixed incompatibilities with older versions of gmake. Henning Meier-Geinitz <henning@meier-geinitz.de>DEVEL_2_0_BRANCH-1
rodzic
1173eae668
commit
0fe2b597f5
|
@ -96,7 +96,7 @@ DISTFILES = Makefile.in abaton.c abaton.conf abaton.desc abaton.h \
|
||||||
mustek_pp.h mustek_usb.c mustek_usb.conf mustek_usb.desc \
|
mustek_pp.h mustek_usb.c mustek_usb.conf mustek_usb.desc \
|
||||||
mustek_usb.h mustek_usb_high.c mustek_usb_high.h mustek_usb_low.c \
|
mustek_usb.h mustek_usb_high.c mustek_usb_high.h mustek_usb_low.c \
|
||||||
mustek_usb_low.h mustek_usb_mid.c mustek_usb_mid.h nec.c nec.conf \
|
mustek_usb_low.h mustek_usb_mid.c mustek_usb_mid.h nec.c nec.conf \
|
||||||
nec.desc nec.h net.c net.conf net.desc net.h pie-scsidef.h pie.c \
|
nec.desc nec.h net.c net.conf net.desc net.h niash.desc pie-scsidef.h pie.c \
|
||||||
pie.conf pie.desc pint.c pint.desc pint.h plustek-devs.c \
|
pie.conf pie.desc pint.c pint.desc pint.h plustek-devs.c \
|
||||||
plustek-pp.c plustek-share.h plustek-usb.c plustek-usb.h \
|
plustek-pp.c plustek-share.h plustek-usb.c plustek-usb.h \
|
||||||
plustek-usbhw.c plustek-usbimg.c plustek-usbio.c plustek-usbmap.c \
|
plustek-usbhw.c plustek-usbimg.c plustek-usbio.c plustek-usbmap.c \
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
# po/Makefile.in
|
# po/Makefile.in
|
||||||
INSTALL_TRANSLATIONS = @INSTALL_TRANSLATIONS@
|
|
||||||
all: $(if $(INSTALL_TRANSLATIONS),update-mo)
|
|
||||||
|
|
||||||
# See po/README for documentation.
|
# See po/README for documentation.
|
||||||
|
all: check-mo
|
||||||
|
|
||||||
# Create one line per backend with all files containing translatable text:
|
# Create one line per backend with all files containing translatable text:
|
||||||
epson.*.po: ../backend/epson.c ../backend/epson.h
|
epson.*.po: ../backend/epson.c ../backend/epson.h
|
||||||
|
@ -12,8 +10,6 @@ plustek.*.po: ../backend/plustek.c ../backend/plustek.h
|
||||||
pnm.*.po: ../backend/pnm.c
|
pnm.*.po: ../backend/pnm.c
|
||||||
umax.*.po: ../backend/umax.c
|
umax.*.po: ../backend/umax.c
|
||||||
|
|
||||||
saneopts.*.po: ../include/sane/saneopts.h
|
|
||||||
|
|
||||||
# end of configuration
|
# end of configuration
|
||||||
|
|
||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
|
@ -28,6 +24,12 @@ PACKAGE = @PACKAGE@
|
||||||
VERSION = @VERSION@
|
VERSION = @VERSION@
|
||||||
distdir = $(top_srcdir)/$(PACKAGE)-$(VERSION)
|
distdir = $(top_srcdir)/$(PACKAGE)-$(VERSION)
|
||||||
|
|
||||||
|
INSTALL_TRANSLATIONS = @INSTALL_TRANSLATIONS@
|
||||||
|
ifeq ($(INSTALL_TRANSLATIONS),install-translations)
|
||||||
|
UNINSTALL_TRANSLATIONS = uninstall-translations
|
||||||
|
UPDATE_MO = update-mo
|
||||||
|
endif
|
||||||
|
|
||||||
MKDIR = $(top_srcdir)/mkinstalldirs
|
MKDIR = $(top_srcdir)/mkinstalldirs
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
|
@ -45,16 +47,16 @@ ALL_POTS = $(addsuffix .pot,$(ALL_BACKENDS))
|
||||||
ALL_MOS = $(filter-out saneopts.%.mo,$(addsuffix .mo,$(basename $(ALL_POS))))
|
ALL_MOS = $(filter-out saneopts.%.mo,$(addsuffix .mo,$(basename $(ALL_POS))))
|
||||||
ALL_LINGUAS = $(sort $(subst .,,$(suffix $(basename $(ALL_POS)))))
|
ALL_LINGUAS = $(sort $(subst .,,$(suffix $(basename $(ALL_POS)))))
|
||||||
|
|
||||||
INSTALL_TRANSLATIONS = @INSTALL_TRANSLATIONS@
|
|
||||||
|
|
||||||
DISTFILES = Makefile.in README epson.de.po mustek.de.po \
|
DISTFILES = Makefile.in README epson.de.po mustek.de.po \
|
||||||
mustek_usb.de.po plustek.de.po pnm.de.po saneopts.po umax.de.po
|
mustek_usb.de.po plustek.de.po pnm.de.po saneopts.de.po umax.de.po
|
||||||
|
|
||||||
.PHONY: all clean depend dist distclean install install-translations \
|
.PHONY: all clean depend dist distclean install install-translations \
|
||||||
uninstall update-mo update-po generate-%
|
uninstall update-mo update-po generate-%
|
||||||
|
|
||||||
.SUFFIXES: .po .mo
|
.SUFFIXES: .po .mo
|
||||||
|
|
||||||
|
saneopts.*.po: ../include/sane/saneopts.h
|
||||||
|
|
||||||
# backend.lang.po -> backend.lang.mo
|
# backend.lang.po -> backend.lang.mo
|
||||||
.po.mo:
|
.po.mo:
|
||||||
@lang=$(subst .,,$(suffix $(basename $(subst install-,,$@)))) ; \
|
@lang=$(subst .,,$(suffix $(basename $(subst install-,,$@)))) ; \
|
||||||
|
@ -88,6 +90,8 @@ update-po: $(ALL_POS)
|
||||||
|
|
||||||
update-mo: $(ALL_MOS)
|
update-mo: $(ALL_MOS)
|
||||||
|
|
||||||
|
check-mo: $(UPDATE_MO)
|
||||||
|
|
||||||
$(addprefix install-,$(ALL_MOS)):
|
$(addprefix install-,$(ALL_MOS)):
|
||||||
@mo_file=$(subst install-,,$@) ; \
|
@mo_file=$(subst install-,,$@) ; \
|
||||||
backend=$(basename $(basename $(subst install-,,$@))) ; \
|
backend=$(basename $(basename $(subst install-,,$@))) ; \
|
||||||
|
@ -97,7 +101,9 @@ $(addprefix install-,$(ALL_MOS)):
|
||||||
$(MKDIR) $${dir} && \
|
$(MKDIR) $${dir} && \
|
||||||
$(INSTALL_DATA) $${mo_file} $${dir}/sane-$${backend}.mo ;
|
$(INSTALL_DATA) $${mo_file} $${dir}/sane-$${backend}.mo ;
|
||||||
|
|
||||||
install: $(if $(INSTALL_TRANSLATIONS),$(addprefix install-,$(ALL_MOS)))
|
install-translations: $(addprefix install-,$(ALL_MOS))
|
||||||
|
|
||||||
|
install: $(INSTALL_TRANSLATIONS)
|
||||||
|
|
||||||
uninstall-translations:
|
uninstall-translations:
|
||||||
@for lang in $(ALL_LINGUAS) ; do \
|
@for lang in $(ALL_LINGUAS) ; do \
|
||||||
|
@ -106,7 +112,7 @@ uninstall-translations:
|
||||||
rm -f $${dir}/sane-*.mo ; \
|
rm -f $${dir}/sane-*.mo ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
uninstall: $(if $(INSTALL_TRANSLATIONS),uninstall-translations)
|
uninstall: $(UNINSTALL_TRANSLATIONS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.mo
|
rm -f *.mo
|
||||||
|
|
Ładowanie…
Reference in New Issue