~ubuntu-branches/debian/sid/libaqbanking/sid

« back to all changes in this revision

Viewing changes to .pc/0001-Make-contents-of-listdoc.h-reproducible.patch/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Micha Lenk
  • Date: 2015-08-25 09:24:58 UTC
  • Revision ID: package-import@ubuntu.com-20150825092458-1j8umse9e8orx321
Tags: 5.6.1beta-2
Added 0001-Make-contents-of-listdoc.h-reproducible.patch to make build
reproducible (closes: #792727).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SUBDIRS=admin doc m4 src po @TUTORIALS@
 
2
DIST_SUBDIRS=admin doc m4 src po tutorials
 
3
 
 
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 \
 
8
 i18nsources \
 
9
 mksymlinks.sh.in mksymlinks.sh Makefile.cvs
 
10
 
 
11
idatadir=${datadir}/doc/aqbanking
 
12
idata_DATA=AUTHORS COPYING ChangeLog README
 
13
 
 
14
bin_SCRIPTS=aqbanking-config
 
15
aclocaldir = $(datadir)/aclocal
 
16
dist_aclocal_DATA = aqbanking.m4
 
17
 
 
18
ACLOCAL_AMFLAGS = $(ADD_ACLOCAL_FLAGS) -I m4
 
19
 
 
20
iheaderdir=@aqbanking_headerdir_am@/aqbanking
 
21
iheader_HEADERS=\
 
22
  version.h system.h
 
23
 
 
24
CLEANFILES = aqbanking-config aqbanking-config.in
 
25
 
 
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
 
31
 
 
32
pkgconfigdir = $(libdir)/pkgconfig
 
33
pkgconfig_DATA = aqbanking.pc
 
34
 
 
35
cmakeconfigdir = $(libdir)/cmake/aqbanking-$(AQBANKING_VERSION_MAJOR).$(AQBANKING_VERSION_MINOR)
 
36
cmakeconfig_DATA = aqbanking-config.cmake aqbanking-config-version.cmake
 
37
 
 
38
listdoc.h:
 
39
        $(gwenhywfar_bindir)/mklistdoc -I $(gwenhywfar_headers) -v `find $(aqbanking_symlinkdir) -name '*.h' ` >listdoc.h
 
40
 
 
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@
 
44
        doxygen
 
45
 
 
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)/"; \
 
51
        done
 
52
        cp "apidoc/$(PACKAGE).tag" "$(DESTDIR)@docpath@/"
 
53
        if test -x "$(DESTDIR)@docpath@/$(PACKAGE)/installdox"; then \
 
54
          cd "$(DESTDIR)@docpath@/$(PACKAGE)" && \
 
55
           ID_OPT="-q" ; \
 
56
           for ff in ${DOXYGEN_TAGFILES}; do \
 
57
            ID_OPT="$$ID_OPT -l `basename $$ff`@../`basename $$ff | $(SED) -e s/.tag//`";\
 
58
           done ;\
 
59
           ( cd "$(DESTDIR)@docpath@/$(PACKAGE)" && \
 
60
              ./installdox -q $$ID_OPT \
 
61
           ); \
 
62
        fi
 
63
 
 
64
 
 
65
rpm:    $(PACKAGE).spec dist
 
66
        rpmbuild="rpm" && \
 
67
        if [ `rpm --version | awk '{ print $$3 }'` > /dev/null ]; then rpmbuild="rpmbuild"; fi && \
 
68
        $$rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
 
69
 
 
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"
 
73
wintmpdir = win32-tmp
 
74
setup: aqbanking.iss
 
75
        mkdir -p $(wintmpdir)
 
76
        for A in `find src/plugins -name *.la`; do \
 
77
          grep -v relink_command $${A} > $${A}.tmp && \
 
78
            mv $${A}.tmp $${A}; \
 
79
        done
 
80
        $(MAKE) DESTDIR="`pwd`/$(wintmpdir)" \
 
81
             aqbanking_pkgdatadir="/share/$(PACKAGE)" \
 
82
             gwenhywfar_plugins="/gwen" \
 
83
             WIN_PATH_WINDOWS_MINGW="/windows" \
 
84
             install \
 
85
         && for A in `find $(wintmpdir) -name '*.exe'`; do \
 
86
                strip $${A}; \
 
87
            done \
 
88
         && $(ISCC) aqbanking.iss \
 
89
         && rm -rf $(wintmpdir)
 
90
 
 
91
 
 
92
if IF_MAKE_I18N_FILES
 
93
 
 
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)
 
100
 
 
101
# Current build rule:
 
102
sources:
 
103
        rm -f $(srcdir)/i18nsources $(srcdir)/dlgsources $(srcdir)/pdsources
 
104
        $(MAKE) -C $(top_builddir)/src sources
 
105
$(srcdir)/i18nsources $(srcdir)/dlgsources $(srcdir)/pdsources:
 
106
        $(MAKE) sources
 
107
 
 
108
# Could also be solved this way: Read the I18NFILES variable from file
 
109
#include $(srcdir)/i18nsources
 
110
# (Needs the following build rule:)
 
111
#sources:
 
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
 
120
#       $(MAKE) Makefile
 
121
 
 
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:
 
125
#ALL_LINGUAS = de
 
126
 
 
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
 
129
# variable.
 
130
I18NLINGUAS = $(foreach lang,$(ALL_LINGUAS),$(srcdir)/po/$(lang).po)
 
131
 
 
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)
 
136
 
 
137
po/$(PACKAGE).pot: i18nsources dlgsources pdsources $(I18NFILES)
 
138
        rm -f po/tmp*
 
139
        if test -n "$(I18NFILES)"; then \
 
140
          $(XGETTEXT) -C -c -ki18n -ktr2i18n -kI18N -kI18S\
 
141
            -kI18N_NOOP -ktranslate -kaliasLocale \
 
142
            -ktr -ktrUtf8 \
 
143
            '--msgid-bugs-address=aqbanking-user@lists.aqbanking.de' \
 
144
            -o po/tmppot \
 
145
            $(I18NFILES) ; \
 
146
        fi
 
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; \
 
151
        done
 
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>" \
 
156
            && \
 
157
          msghack -o po/tmppot2 --append po/tmppot po/tmppot1 && \
 
158
          mv po/tmppot2 po/tmppot; \
 
159
        done
 
160
        mv po/tmppot po/$(PACKAGE).pot
 
161
        rm -f po/tmppot1
 
162
 
 
163
 
 
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."; \
 
176
                rm $$cat.new;  \
 
177
          else  \
 
178
                mv $$cat.new $$cat ; \
 
179
        fi; \
 
180
        rm -f $$cat.new.1 $$cat.new.2 ;\
 
181
        fi ;\
 
182
        done
 
183
 
 
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}; \
 
193
          else \
 
194
            echo "$(MSGFMT) does not have the option --qt; ignoring qt translations"; \
 
195
          fi; \
 
196
        done
 
197
 
 
198
 
 
199
 
 
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; \
 
208
        done
 
209
uninstall-mo-catalogs:
 
210
        @$(NORMAL_UNINSTALL)
 
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"; \
 
214
        done
 
215
 
 
216
 
 
217
install-data-local: install-mo-catalogs
 
218
uninstall-local: uninstall-mo-catalogs
 
219
 
 
220
CLEANFILES += $(I18NCATALOGS)
 
221
 
 
222
endif # if USE_I18N
 
223
 
 
224
 
 
225
# Rule for only building the source rpm
 
226
srpm: $(PACKAGE).spec dist
 
227
        rpmbuild="rpm" && \
 
228
        if [ `rpm --version | awk '{ print $$3 }'` > /dev/null ]; then rpmbuild="rpmbuild"; fi && \
 
229
        $$rpmbuild --nodeps -ts $(PACKAGE)-$(VERSION).tar.gz
 
230
 
 
231
BUILT_SOURCES = $(iheader_HEADERS) sl-headers
 
232
CLEANFILES += $(BUILT_SOURCES)
 
233
 
 
234
symlinks: mksymlinks.sh
 
235
        ${SHELL} mksymlinks.sh $(srcdir) $(builddir)
 
236
 
 
237
sl-headers: mksymlinks.sh
 
238
        $(MAKE) -C src built_sources
 
239
        ${SHELL} mksymlinks.sh $(srcdir) $(builddir)
 
240
 
 
241
# Call this to have Qt's uic files and glade files cleaned up from
 
242
# bad elements
 
243
code-cleanup:
 
244
        -admin/fixuifiles
 
245
        -admin/glade-fixup
 
246
 
 
247
cppcheck:
 
248
        for f in `find . -name \*.c -o -name \*.cpp`; do cppcheck $$f; done
 
249
 
 
250
ChangeLog:
 
251
        git log -n 100 --pretty="format:------------------------------------------------------------------%n%ai %an%n%s%n%b" >ChangeLog
 
252
 
 
253
dist-hook:
 
254
        rm -f ChangeLog 2>/dev/null
 
255
        $(MAKE) ChangeLog
 
256