1
SUBDIRS=admin doc m4 src po @TUTORIALS@
2
DIST_SUBDIRS=admin doc m4 src po tutorials
4
EXTRA_DIST=AUTHORS COPYING ChangeLog INSTALL NEWS README \
5
aqbanking.spec.in aqbanking.spec \
6
aqbanking.iss.in aqbanking.iss \
7
Doxyfile.in version.h.in system.h.in \
9
mksymlinks.sh.in mksymlinks.sh Makefile.cvs
11
idatadir=${datadir}/doc/aqbanking
12
idata_DATA=AUTHORS COPYING ChangeLog README
14
bin_SCRIPTS=aqbanking-config
15
aclocaldir = $(datadir)/aclocal
16
dist_aclocal_DATA = aqbanking.m4
18
ACLOCAL_AMFLAGS = $(ADD_ACLOCAL_FLAGS) -I m4
20
iheaderdir=@aqbanking_headerdir_am@/aqbanking
24
CLEANFILES = aqbanking-config aqbanking-config.in
26
aqbanking-config: aqbanking-config.in
27
echo "#! /bin/sh" >aqbanking-config && \
28
echo 'dir="@prefix@"' >>aqbanking-config && \
29
cat aqbanking-config.in >>aqbanking-config && \
30
chmod a+x aqbanking-config
32
pkgconfigdir = $(libdir)/pkgconfig
33
pkgconfig_DATA = aqbanking.pc
35
cmakeconfigdir = $(libdir)/cmake/aqbanking-$(AQBANKING_VERSION_MAJOR).$(AQBANKING_VERSION_MINOR)
36
cmakeconfig_DATA = aqbanking-config.cmake aqbanking-config-version.cmake
39
$(gwenhywfar_bindir)/mklistdoc -I $(gwenhywfar_headers) -v `find $(aqbanking_symlinkdir) -name '*.h' ` >listdoc.h
41
srcdoc: Doxyfile listdoc.h
42
if test -d apidoc; then rm -Rf apidoc; fi
43
mkdir -p apidoc/html/aqbanking-@AQBANKING_VERSION_RELEASE_STRING@
46
install-srcdoc: srcdoc
47
test -d "$(DESTDIR)@docpath@/$(PACKAGE)" || \
48
mkdir -p "$(DESTDIR)@docpath@/$(PACKAGE)"
49
for f in apidoc/html/aqbanking-@AQBANKING_VERSION_RELEASE_STRING@/*; do \
50
cp $$f "$(DESTDIR)@docpath@/$(PACKAGE)/"; \
52
cp "apidoc/$(PACKAGE).tag" "$(DESTDIR)@docpath@/"
53
if test -x "$(DESTDIR)@docpath@/$(PACKAGE)/installdox"; then \
54
cd "$(DESTDIR)@docpath@/$(PACKAGE)" && \
56
for ff in ${DOXYGEN_TAGFILES}; do \
57
ID_OPT="$$ID_OPT -l `basename $$ff`@../`basename $$ff | $(SED) -e s/.tag//`";\
59
( cd "$(DESTDIR)@docpath@/$(PACKAGE)" && \
60
./installdox -q $$ID_OPT \
65
rpm: $(PACKAGE).spec dist
67
if [ `rpm --version | awk '{ print $$3 }'` > /dev/null ]; then rpmbuild="rpmbuild"; fi && \
68
$$rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
70
# Rule for using the Inno Setup compiler. The path to iscc.exe is set
71
# manually here for now.
72
ISCC = "C:\Programme\Inno Setup 5\iscc.exe"
76
for A in `find src/plugins -name *.la`; do \
77
grep -v relink_command $${A} > $${A}.tmp && \
80
$(MAKE) DESTDIR="`pwd`/$(wintmpdir)" \
81
aqbanking_pkgdatadir="/share/$(PACKAGE)" \
82
gwenhywfar_plugins="/gwen" \
83
WIN_PATH_WINDOWS_MINGW="/windows" \
85
&& for A in `find $(wintmpdir) -name '*.exe'`; do \
88
&& $(ISCC) aqbanking.iss \
89
&& rm -rf $(wintmpdir)
94
# We directly read that file list. For old make programs, you would
95
# set this to an empty variable, because they are only needed by the
96
# developers and release technicians.
97
I18NFILES=$(shell cat $(srcdir)/i18nsources)
98
DLGFILES=$(shell cat $(srcdir)/dlgsources)
99
PDFILES=$(shell cat $(srcdir)/pdsources)
101
# Current build rule:
103
rm -f $(srcdir)/i18nsources $(srcdir)/dlgsources $(srcdir)/pdsources
104
$(MAKE) -C $(top_builddir)/src sources
105
$(srcdir)/i18nsources $(srcdir)/dlgsources $(srcdir)/pdsources:
108
# Could also be solved this way: Read the I18NFILES variable from file
109
#include $(srcdir)/i18nsources
110
# (Needs the following build rule:)
112
# rm -f $(srcdir)/i18nsources
113
# $(MAKE) -C $(top_srcdir)/src sources
114
# mv $(srcdir)/i18nsources $(srcdir)/i18nsources.tmp
115
# echo "I18NFILES = \\" > $(srcdir)/i18nsources
116
# $(SED) 's!\(^.*$$\)!$$(top_srcdir)/\1 \\!' \
117
# $(srcdir)/i18nsources.tmp >> $(srcdir)/i18nsources
118
# echo '$$(top_srcdir)/config.h' >> $(srcdir)/i18nsources
119
# rm -f $(srcdir)/i18nsources.tmp
122
# The list of available languages (makes file name transformations much easier)
123
ALL_LINGUAS = $(basename $(notdir $(shell ls $(srcdir)/po/*.po)))
124
# For old make programs, the locales would directly be written here:
127
# List of po files. Only necessary in the dependency of the catalogs
128
# rule. For old make programs, you would simpy set this to an empty
130
I18NLINGUAS = $(foreach lang,$(ALL_LINGUAS),$(srcdir)/po/$(lang).po)
132
# List of mo files. Only necessary for cleanup. For old make programs,
133
# you would simply set this to an empty variable.
134
I18NCATALOGS = $(foreach lang,$(ALL_LINGUAS),$(top_builddir)/po/$(lang).mo)
135
I18NCATALOGS += $(foreach lang,$(ALL_LINGUAS),$(top_builddir)/po/$(lang).qm)
137
po/$(PACKAGE).pot: i18nsources dlgsources pdsources $(I18NFILES)
139
if test -n "$(I18NFILES)"; then \
140
$(XGETTEXT) -C -c -ki18n -ktr2i18n -kI18N -kI18S\
141
-kI18N_NOOP -ktranslate -kaliasLocale \
143
'--msgid-bugs-address=aqbanking-user@lists.aqbanking.de' \
147
for i in $(DLGFILES); do \
148
po4a-gettextize -f xml -m $$i -p po/tmppot1 -o attributes=text && \
149
msghack -o po/tmppot2 --append po/tmppot po/tmppot1 && \
150
mv po/tmppot2 po/tmppot; \
152
for i in $(PDFILES); do \
153
po4a-gettextize -f xml -m $$i -p po/tmppot1 -o wrap \
154
-o translated="<plugin><short> <plugin><descr>" \
155
-o untranslated="<plugin><version> <plugin><author>" \
157
msghack -o po/tmppot2 --append po/tmppot po/tmppot1 && \
158
mv po/tmppot2 po/tmppot; \
160
mv po/tmppot po/$(PACKAGE).pot
164
# This rule is not called automatically. It is necessary only for
165
# the translators, so translators only call this manually.
166
merge: po/$(PACKAGE).pot
167
@catalogs=$(I18NLINGUAS); \
168
for cat in $$catalogs; do \
169
echo msgmerge -o $$cat.new $$cat ./po/$(PACKAGE).pot ; \
170
msgmerge -o $$cat.new $$cat ./po/$(PACKAGE).pot ; \
171
if test -s $$cat.new; then \
172
grep -v "\"POT-Creation" $$cat.new | grep -v '^#' > $$cat.new.2 ; \
173
grep -v "\"POT-Creation" $$cat | grep -v '^#' >> $$cat.new.1; \
174
if diff $$cat.new.1 $$cat.new.2; then \
175
echo " $$cat unchanged; leaving existing po file untouched."; \
178
mv $$cat.new $$cat ; \
180
rm -f $$cat.new.1 $$cat.new.2 ;\
184
catalogs: $(I18NLINGUAS)
185
@for i in $(ALL_LINGUAS); do \
186
filelingua=$(srcdir)/po/$$i.po; \
187
filecat=$(top_builddir)/po/$$i.mo; \
188
fileqm=$(top_builddir)/po/$$i.qm; \
189
echo "Creating translation catalogs for language \"$$i\""; \
190
$(MSGFMT) -o $${filecat} $${filelingua} || touch $${filelingua}; \
191
if test $(MSGFMT_SUPPORTS_QT) = "yes"; then \
192
$(MSGFMT) -o $${fileqm} --qt $${filelingua} || touch $${filelingua}; \
194
echo "$(MSGFMT) does not have the option --qt; ignoring qt translations"; \
200
ilocaledir = $(datadir)/locale
201
install-mo-catalogs: catalogs
202
@for i in $(ALL_LINGUAS); do \
203
filecat=$(top_builddir)/po/$$i.mo; \
204
fileqm=$(top_builddir)/po/$$i.qm; \
205
echo "Installing translation catalog for language \"$$i\""; \
206
$(mkinstalldirs) "$(DESTDIR)$(ilocaledir)/$$i/LC_MESSAGES"; \
207
$(INSTALL_DATA) $${filecat} $(DESTDIR)$(ilocaledir)/$$i/LC_MESSAGES/$(PACKAGE).mo; \
209
uninstall-mo-catalogs:
211
@for i in $(ALL_LINGUAS); do \
212
echo " rm -f '$(DESTDIR)$(ilocaledir)/$$i/LC_MESSAGES/$(PACKAGE).mo'"; \
213
rm -f "$(DESTDIR)$(ilocaledir)/$$i/LC_MESSAGES/$(PACKAGE).mo"; \
217
install-data-local: install-mo-catalogs
218
uninstall-local: uninstall-mo-catalogs
220
CLEANFILES += $(I18NCATALOGS)
225
# Rule for only building the source rpm
226
srpm: $(PACKAGE).spec dist
228
if [ `rpm --version | awk '{ print $$3 }'` > /dev/null ]; then rpmbuild="rpmbuild"; fi && \
229
$$rpmbuild --nodeps -ts $(PACKAGE)-$(VERSION).tar.gz
231
BUILT_SOURCES = $(iheader_HEADERS) sl-headers
232
CLEANFILES += $(BUILT_SOURCES)
234
symlinks: mksymlinks.sh
235
${SHELL} mksymlinks.sh $(srcdir) $(builddir)
237
sl-headers: mksymlinks.sh
238
$(MAKE) -C src built_sources
239
${SHELL} mksymlinks.sh $(srcdir) $(builddir)
241
# Call this to have Qt's uic files and glade files cleaned up from
248
for f in `find . -name \*.c -o -name \*.cpp`; do cppcheck $$f; done
251
git log -n 100 --pretty="format:------------------------------------------------------------------%n%ai %an%n%s%n%b" >ChangeLog
254
rm -f ChangeLog 2>/dev/null