Projekt

Allgemein

Profil

Herunterladen (4,23 KB) Statistiken
| Zweig: | Markierung: | Revision:
SUBDIRS=m4 doc po data src

EXTRA_DIST=\
AUTHORS \
COPYING \
ChangeLog \
INSTALL \
NEWS \
README \
Makefile.cvs \
mksymlinks.sh


bin_SCRIPTS=aqfinance-config
aclocaldir = $(datadir)/aclocal
dist_aclocal_DATA = aqfinance.m4

ACLOCAL_AMFLAGS = $(ADD_ACLOCAL_FLAGS) -I m4

CLEANFILES = aqfinance-config aqfinance-config.in


aqfinance-config: aqfinance-config.in
echo "#! /bin/sh" >aqfinance-config && \
echo 'dir="@prefix@"' >>aqfinance-config && \
cat aqfinance-config.in >>aqfinance-config && \
chmod a+x aqfinance-config

ChangeLog:
git log --pretty="format:------------------------------------------------------------------%n%ai %an%n%s%n%b" >ChangeLog


build_sources: $(built_sources)
$(srcdir)/mksymlinks.sh $(srcdir) $(builddir) && $(MAKE) -C src build_sources;


sources:
$(MAKE) -C src sources


listdoc.h:
$(gwenhywfar_bindir)/mklistdoc -I $(gwenhywfar_headers) -v `find $(aqfinance_symlinkdir) -name '*.h' | LC_ALL=C sort ` >listdoc.h

srcdoc: Doxyfile listdoc.h
if test -d apidoc; then rm -Rf apidoc; fi
mkdir -p apidoc/html/aqfinance-@AF_VERSION_RELEASE_STRING@
doxygen

install-srcdoc: srcdoc
test -d "$(DESTDIR)@docpath@/$(PACKAGE)" || \
mkdir -p "$(DESTDIR)@docpath@/$(PACKAGE)"
for f in apidoc/html/aqfinance-@AF_VERSION_RELEASE_STRING@/*; do \
cp -dR $$f "$(DESTDIR)@docpath@/$(PACKAGE)/"; \
done
cp "apidoc/$(PACKAGE).tag" "$(DESTDIR)@docpath@/"


if USE_I18N

# The list of available languages (makes file name transformations much easier)
ALL_LINGUAS = $(basename $(notdir $(shell ls $(srcdir)/po/*.po)))
# For old make programs, the locales would directly be written here:
#ALL_LINGUAS = de

# List of po files. Only necessary in the dependency of the catalogs
# rule. For old make programs, you would simpy set this to an empty
# variable.
I18NLINGUAS = $(foreach lang,$(ALL_LINGUAS),$(srcdir)/po/$(lang).po)

# List of mo files. Only necessary for cleanup. For old make programs,
# you would simply set this to an empty variable.
I18NCATALOGS = $(foreach lang,$(ALL_LINGUAS),$(top_builddir)/po/$(lang).mo)
I18NCATALOGS += $(foreach lang,$(ALL_LINGUAS),$(top_builddir)/po/$(lang).qm)

po/aqfinance.pot: $(top_srcdir)/i18nsources
if test -f "$(top_srcdir)/i18nsources"; then \
$(XGETTEXT) -C -c -kI18N -kI18S -ktr \
'--msgid-bugs-address=martin@aqbanking.de' \
'--package-name=aqfinance' \
'--package-version=$(AF_VERSION_RELEASE_STRING)' \
-o po/aqfinance.pot \
-f $(top_srcdir)/i18nsources; \
fi


# This rule is not called automatically. It is necessary only for
# the translators, so translators only call this manually.
merge: po/$(PACKAGE).pot
@catalogs=$(I18NLINGUAS); \
for cat in $$catalogs; do \
echo msgmerge -o $$cat.new $$cat ./po/$(PACKAGE).pot ; \
msgmerge -o $$cat.new $$cat ./po/$(PACKAGE).pot ; \
if test -s $$cat.new; then \
grep -v "\"POT-Creation" $$cat.new | grep -v '^#' > $$cat.new.2 ; \
grep -v "\"POT-Creation" $$cat | grep -v '^#' >> $$cat.new.1; \
if diff $$cat.new.1 $$cat.new.2; then \
echo " $$cat unchanged; leaving existing po file untouched."; \
rm $$cat.new; \
else \
mv $$cat.new $$cat ; \
fi; \
rm -f $$cat.new.1 $$cat.new.2 ;\
fi ;\
done

catalogs: $(I18NLINGUAS)
@for i in $(ALL_LINGUAS); do \
filelingua=$(srcdir)/po/$$i.po; \
filecat=$(top_builddir)/po/$$i.mo; \
echo "Creating translation catalogs for language \"$$i\""; \
$(MSGFMT) -o $${filecat} $${filelingua} || touch $${filelingua}; \
done

ilocaledir = $(datadir)/locale
install-mo-catalogs: catalogs
@for i in $(ALL_LINGUAS); do \
filecat=$(top_builddir)/po/$$i.mo; \
fileqm=$(top_builddir)/po/$$i.qm; \
echo "Installing translation catalog for language \"$$i\""; \
$(mkinstalldirs) "$(DESTDIR)$(ilocaledir)/$$i/LC_MESSAGES"; \
$(INSTALL_DATA) $${filecat} $(DESTDIR)$(ilocaledir)/$$i/LC_MESSAGES/$(PACKAGE).mo; \
done
uninstall-mo-catalogs:
@$(NORMAL_UNINSTALL)
@for i in $(ALL_LINGUAS); do \
echo " rm -f '$(DESTDIR)$(ilocaledir)/$$i/LC_MESSAGES/$(PACKAGE).mo'"; \
rm -f "$(DESTDIR)$(ilocaledir)/$$i/LC_MESSAGES/$(PACKAGE).mo"; \
done


install-data-local: install-mo-catalogs
uninstall-local: uninstall-mo-catalogs

CLEANFILES += $(I18NCATALOGS)

cppcheck:
for f in `find . -name \*.c -o -name \*.cpp`; do cppcheck $$f; done


endif # if USE_I18N

(5-5/18)