Makefile.am 16.9 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

CXXFLAGS ?= @CXXFLAGS@
LIBXAPIAN=@LIBXAPIAN@
XAPIANCXXFLAGS=@XAPIANCXXFLAGS@
LIBICONV=@LIBICONV@
INCICONV=@INCICONV@
LIBFAM = @LIBFAM@
RCLLIBVERSION=@RCLLIBVERSION@
X_CFLAGS=@X_CFLAGS@
X_PRE_LIBS=@X_PRE_LIBS@
X_LIBS=@X_LIBS@
X_EXTRA_LIBS=@X_EXTRA_LIBS@
X_LIBX11=@X_LIBX11@
DEFS=@DEFS@

COMMONCPPFLAGS = -I. \
    -I$(top_srcdir)/aspell \
    -I$(top_srcdir)/bincimapmime \
    -I$(top_srcdir)/common \
    -I$(top_srcdir)/index \
    -I$(top_srcdir)/internfile \
    -I$(top_srcdir)/rcldb \
    -I$(top_srcdir)/unac \
24
    -I$(top_srcdir)/utils \
25
26
    -I$(top_srcdir)/xaposix \
    -DBUILDING_RECOLL
27

28
AM_CPPFLAGS = -Wall -Wno-unused -std=c++11 \
29
30
31
32
33
34
    $(COMMONCPPFLAGS) \
    $(INCICONV) \
    $(XAPIANCXXFLAGS) \
    $(X_CFLAGS) \
    -DRECOLL_DATADIR=\"${pkgdatadir}\" \
    -D_GNU_SOURCE \
Jean-Francois Dockes's avatar
wen    
Jean-Francois Dockes committed
35
    -DTESTING_XAPIAN_SPELL \
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
    $(DEFS)

ACLOCAL_AMFLAGS = -I m4

if NOTHREADS
    LIBTHREADS=
else
    LIBTHREADS= $(LIBSYSTHREADS)
endif

librcldir = $(libdir)/recoll
librcl_LTLIBRARIES = librecoll.la

librecoll_la_SOURCES = \
aspell/aspell-local.h \
aspell/rclaspell.cpp \
aspell/rclaspell.h \
bincimapmime/convert.cc \
bincimapmime/convert.h \
bincimapmime/mime-inputsource.h \
bincimapmime/mime-parsefull.cc \
bincimapmime/mime-parseonlyheader.cc \
bincimapmime/mime-printbody.cc \
bincimapmime/mime-utils.h \
bincimapmime/mime.cc \
bincimapmime/mime.h \
common/beaglequeuecache.cpp \
common/beaglequeuecache.h \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
64
common/conf_post.h \
65
66
67
68
69
70
common/cstr.cpp \
common/cstr.h \
common/rclconfig.cpp \
common/rclconfig.h \
common/rclinit.cpp \
common/rclinit.h \
71
72
common/syngroups.cpp \
common/syngroups.h \
73
74
75
76
77
common/textsplit.cpp \
common/textsplit.h \
common/unacpp.cpp \
common/unacpp.h \
common/uproplist.h \
Jean-Francois Dockes's avatar
none    
Jean-Francois Dockes committed
78
79
common/utf8fn.cpp \
common/utf8fn.h \
80
81
82
83
84
85
index/beaglequeue.cpp \
index/beaglequeue.h \
index/bglfetcher.cpp \
index/bglfetcher.h \
index/checkretryfailed.cpp \
index/checkretryfailed.h \
86
87
index/exefetcher.cpp \
index/exefetcher.h \
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
index/fetcher.cpp \
index/fetcher.h \
index/fsfetcher.cpp \
index/fsfetcher.h \
index/fsindexer.cpp \
index/fsindexer.h \
index/indexer.cpp \
index/indexer.h \
index/mimetype.cpp \
index/mimetype.h \
index/rclmon.h \
index/recollindex.h \
index/subtreelist.cpp \
index/subtreelist.h \
internfile/Filter.h \
internfile/extrameta.cpp \
internfile/extrameta.h \
internfile/htmlparse.cpp \
internfile/htmlparse.h \
internfile/indextext.h \
internfile/internfile.cpp \
internfile/internfile.h \
internfile/mh_exec.cpp \
internfile/mh_exec.h \
internfile/mh_execm.cpp \
internfile/mh_execm.h \
internfile/mh_html.cpp \
internfile/mh_html.h \
internfile/mh_mail.cpp \
internfile/mh_mail.h \
internfile/mh_mbox.cpp \
internfile/mh_mbox.h \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
120
internfile/mh_null.h \
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
internfile/mh_symlink.h \
internfile/mh_text.cpp \
internfile/mh_text.h \
internfile/mh_unknown.h \
internfile/mimehandler.cpp \
internfile/mimehandler.h \
internfile/myhtmlparse.cpp \
internfile/myhtmlparse.h \
internfile/txtdcode.cpp \
internfile/uncomp.cpp \
internfile/uncomp.h \
query/docseq.cpp \
query/docseq.h \
query/docseqdb.cpp \
query/docseqdb.h \
query/docseqdocs.h \
query/docseqhist.cpp \
query/docseqhist.h \
query/dynconf.cpp \
query/dynconf.h \
query/filtseq.cpp \
query/filtseq.h \
query/plaintorich.cpp \
query/plaintorich.h \
query/recollq.cpp \
query/recollq.h \
query/reslistpager.cpp \
query/reslistpager.h \
query/sortseq.cpp \
query/sortseq.h \
query/wasaparse.ypp \
query/wasaparseaux.cpp \
query/wasaparserdriver.h \
query/wasatorcl.h \
rcldb/daterange.cpp \
rcldb/daterange.h \
rcldb/expansiondbs.cpp \
rcldb/expansiondbs.h \
rcldb/rclabstract.cpp \
rcldb/rcldb.cpp \
rcldb/rcldb.h \
rcldb/rcldb_p.h \
rcldb/rcldoc.cpp \
rcldb/rcldoc.h \
rcldb/rcldups.cpp \
rcldb/rclquery.cpp \
rcldb/rclquery.h \
rcldb/rclquery_p.h \
rcldb/rclterms.cpp \
rcldb/searchdata.cpp \
rcldb/searchdata.h \
rcldb/searchdatatox.cpp \
rcldb/searchdataxml.cpp \
rcldb/stemdb.cpp \
rcldb/stemdb.h \
rcldb/stoplist.cpp \
rcldb/stoplist.h \
rcldb/synfamily.cpp \
rcldb/synfamily.h \
rcldb/termproc.h \
rcldb/xmacros.h \
unac/unac.cpp \
unac/unac.h \
unac/unac_version.h \
utils/appformime.cpp \
utils/appformime.h \
utils/base64.cpp \
utils/base64.h \
189
utils/cancelcheck.cpp \
190
utils/cancelcheck.h \
191
192
utils/chrono.h \
utils/chrono.cpp \
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
utils/circache.cpp \
utils/circache.h \
utils/closefrom.cpp \
utils/closefrom.h \
utils/conftree.cpp \
utils/conftree.h \
utils/copyfile.cpp \
utils/copyfile.h \
utils/cpuconf.cpp \
utils/cpuconf.h \
utils/ecrontab.cpp \
utils/ecrontab.h \
utils/execmd.cpp \
utils/execmd.h \
utils/fileudi.cpp \
utils/fileudi.h \
utils/fstreewalk.cpp \
utils/fstreewalk.h \
utils/hldata.h \
212
utils/hldata.cpp \
213
214
utils/idfile.cpp \
utils/idfile.h \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
215
216
utils/listmem.cpp \
utils/listmem.h \
217
218
utils/log.cpp \
utils/log.h \
219
220
221
222
223
224
225
226
227
228
229
230
231
232
utils/md5.cpp \
utils/md5.h \
utils/md5ut.cpp \
utils/md5ut.h \
utils/mimeparse.cpp \
utils/mimeparse.h \
utils/netcon.cpp \
utils/netcon.h \
utils/pathut.cpp \
utils/pathut.h \
utils/pxattr.cpp \
utils/pxattr.h \
utils/rclionice.cpp \
utils/rclionice.h \
233
234
utils/rclutil.h \
utils/rclutil.cpp \
235
236
237
238
239
240
241
242
243
244
245
246
247
utils/readfile.cpp \
utils/readfile.h \
utils/refcntr.h \
utils/smallut.cpp \
utils/smallut.h \
utils/strmatcher.cpp \
utils/strmatcher.h \
utils/transcode.cpp \
utils/transcode.h \
utils/utf8iter.h \
utils/wipedir.cpp \
utils/wipedir.h \
utils/workqueue.h \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
248
249
250
251
xaposix/safefcntl.h \
xaposix/safesysstat.h \
xaposix/safesyswait.h \
xaposix/safeunistd.h
252

253
BUILT_SOURCES = query/wasaparse.cpp
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
254
AM_YFLAGS = -d
255
256
257
258
259
260
261

# We use -release: the lib is only shared
# between recoll programs from the same release.
# -version-info $(VERSION_INFO)
librecoll_la_LDFLAGS = -release $(VERSION) \
    -Wl,--no-undefined -Wl,--warn-unresolved-symbols

262
librecoll_la_LIBADD = $(LIBXAPIAN) $(LIBICONV) $(LIBTHREADS)
263

264
265
266
267
268
269
270
271
272
273
274
275
276
277
# There is probably a better way to do this. The KIO needs to be linked
# with librecoll, but librecoll is installed into a non-standard place
# (/usr/lib/recoll). Debian packaging has something against setting an
# rpath on the kio (cause it's not the same package as the lib), so I don't
# know how to link it dynamically. The other thing I don't know is how to
# force automake to build a static lib with the PIC objects. So the
# following target, which is only used from the KIO build, deletes any .a
# and .so and rebuilds the .a with the pic objs (the kio build calls
# configured --disable-static).
# Of course this is very uncomfortably close to automake/libtool internals
# and may not work on all systems.
PicStatic: $(librecoll_la_OBJECTS)
	rm -f .libs/librecoll.a
	rm -f .libs/librecoll.so
278
	$(LIBTOOL) --tag=LD --mode=link gcc -g -O -o librecoll.la \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
279
		$(librecoll_la_OBJECTS)
280

281
bin_PROGRAMS = recollindex
282
283
284
if MAKECMDLINE
    bin_PROGRAMS += recollq
endif
285

Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
286
287
288
289
if MAKEXADUMP
   bin_PROGRAMS += xadump
endif

290
291
292
recollindex_SOURCES = \
                    index/recollindex.cpp \
                    index/rclmonprc.cpp \
293
294
295
296
                    index/rclmonrcv.cpp \
                    utils/x11mon.cpp \
                    utils/x11mon.h 
recollindex_LDADD = librecoll.la $(X_LIBX11)
297

298
299
300
recollq_SOURCES = query/recollqmain.cpp
recollq_LDADD = librecoll.la

Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
301
302
303
xadump_SOURCES = query/xadump.cpp
xadump_LDADD = librecoll.la $(LIBXAPIAN) $(LIBICONV)

Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
304
305
# Note: I'd prefer the generated query parser files not to be distributed
# at all, but failed to achieve this
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
306
EXTRA_DIST = \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
bincimapmime/00README.recoll bincimapmime/AUTHORS bincimapmime/COPYING \
\
desktop/hotrecoll.py \
desktop/recoll.appdata.xml \
desktop/recollindex.desktop \
desktop/recoll_index_on_ac.sh \
desktop/recoll-searchgui.desktop \
desktop/recoll.png desktop/recoll.svg desktop/recoll.xcf \
\
doc/man \
doc/prog \
doc/user/*.html doc/user/*.css doc/user/*.txt doc/user/*.xml doc/user/Makefile \
\
filters \
\
index/rclmon.sh \
\
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
324
325
326
327
328
329
330
331
332
333
334
335
336
kde/kioslave/kio_recoll/00README.txt \
kde/kioslave/kio_recoll/CMakeLists.txt \
kde/kioslave/kio_recoll/data/help.html \
kde/kioslave/kio_recoll/data/searchable.html \
kde/kioslave/kio_recoll/data/welcome.html \
kde/kioslave/kio_recoll/dirif.cpp \
kde/kioslave/kio_recoll/htmlif.cpp \
kde/kioslave/kio_recoll/kio_recoll.cpp \
kde/kioslave/kio_recoll/kio_recoll.h \
kde/kioslave/kio_recoll/recollf.protocol \
kde/kioslave/kio_recoll/recollnolist.protocol \
kde/kioslave/kio_recoll/recoll.protocol \
\
337
338
339
340
341
342
343
344
345
346
347
348
349
kde/kioslave/kio_recoll-kde4/00README.txt \
kde/kioslave/kio_recoll-kde4/CMakeLists.txt \
kde/kioslave/kio_recoll-kde4/data/help.html \
kde/kioslave/kio_recoll-kde4/data/searchable.html \
kde/kioslave/kio_recoll-kde4/data/welcome.html \
kde/kioslave/kio_recoll-kde4/dirif.cpp \
kde/kioslave/kio_recoll-kde4/htmlif.cpp \
kde/kioslave/kio_recoll-kde4/kio_recoll.cpp \
kde/kioslave/kio_recoll-kde4/kio_recoll.h \
kde/kioslave/kio_recoll-kde4/recollf.protocol \
kde/kioslave/kio_recoll-kde4/recollnolist.protocol \
kde/kioslave/kio_recoll-kde4/recoll.protocol \
\
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
350
351
query/location.hh  query/position.hh  query/stack.hh \
\
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
qtgui/advsearch.ui \
qtgui/advsearch_w.cpp \
qtgui/advsearch_w.h \
qtgui/advshist.cpp \
qtgui/advshist.h \
qtgui/confgui/confgui.cpp \
qtgui/confgui/confgui.h \
qtgui/confgui/confguiindex.cpp \
qtgui/confgui/confguiindex.h \
qtgui/confgui/conflinkrcl.h \
qtgui/confgui/main.cpp \
qtgui/crontool.cpp \
qtgui/crontool.h \
qtgui/crontool.ui \
qtgui/firstidx.h \
qtgui/firstidx.ui \
qtgui/fragbuts.cpp \
qtgui/fragbuts.h \
qtgui/guiutils.cpp \
qtgui/guiutils.h \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
372
373
374
375
376
377
378
379
380
381
382
383
384
385
qtgui/i18n/recoll_cs.qm qtgui/i18n/recoll_cs.ts \
qtgui/i18n/recoll_da.qm qtgui/i18n/recoll_da.ts \
qtgui/i18n/recoll_de.qm qtgui/i18n/recoll_de.ts \
qtgui/i18n/recoll_el.qm qtgui/i18n/recoll_el.ts \
qtgui/i18n/recoll_es.qm qtgui/i18n/recoll_es.ts \
qtgui/i18n/recoll_fr.qm qtgui/i18n/recoll_fr.ts \
qtgui/i18n/recoll_it.qm qtgui/i18n/recoll_it.ts \
qtgui/i18n/recoll_lt.qm qtgui/i18n/recoll_lt.ts \
qtgui/i18n/recoll_pl.qm qtgui/i18n/recoll_pl.ts \
qtgui/i18n/recoll_ru.qm qtgui/i18n/recoll_ru.ts \
qtgui/i18n/recoll_tr.qm qtgui/i18n/recoll_tr.ts \
qtgui/i18n/recoll_uk.qm qtgui/i18n/recoll_uk.ts \
qtgui/i18n/recoll_xx.qm qtgui/i18n/recoll_xx.ts \
qtgui/i18n/recoll_zh.qm qtgui/i18n/recoll_zh.ts \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
386
qtgui/i18n/recoll_zh_CN.qm qtgui/i18n/recoll_zh_CN.ts \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
qtgui/idxsched.h \
qtgui/idxsched.ui \
qtgui/images/asearch.png \
qtgui/images/cancel.png \
qtgui/images/close.png \
qtgui/images/code-block.png \
qtgui/images/down.png \
qtgui/images/firstpage.png \
qtgui/images/history.png \
qtgui/images/nextpage.png \
qtgui/images/prevpage.png \
qtgui/images/recoll.icns \
qtgui/images/recoll.png \
qtgui/images/sortparms.png \
qtgui/images/spell.png \
qtgui/images/table.png \
qtgui/images/up.png \
qtgui/main.cpp \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
405
406
qtgui/mtpics/License_sidux.txt \
qtgui/mtpics/README \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
407
408
409
410
411
qtgui/mtpics/aptosid-book.png \
qtgui/mtpics/aptosid-manual-copyright.txt \
qtgui/mtpics/aptosid-manual.png \
qtgui/mtpics/archive.png \
qtgui/mtpics/book.png \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
412
qtgui/mtpics/bookchap.png \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
qtgui/mtpics/document.png \
qtgui/mtpics/drawing.png \
qtgui/mtpics/emblem-symbolic-link.png \
qtgui/mtpics/folder.png \
qtgui/mtpics/html.png \
qtgui/mtpics/image.png \
qtgui/mtpics/message.png \
qtgui/mtpics/mozilla_doc.png \
qtgui/mtpics/pdf.png \
qtgui/mtpics/pidgin.png \
qtgui/mtpics/postscript.png \
qtgui/mtpics/presentation.png \
qtgui/mtpics/sidux-book.png \
qtgui/mtpics/soffice.png \
qtgui/mtpics/source.png \
qtgui/mtpics/sownd.png \
qtgui/mtpics/spreadsheet.png \
qtgui/mtpics/text-x-python.png \
qtgui/mtpics/txt.png \
qtgui/mtpics/video.png \
qtgui/mtpics/wordprocessing.png \
qtgui/multisave.cpp \
qtgui/multisave.h \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
436
437
438
439
qtgui/preview_load.cpp \
qtgui/preview_load.h \
qtgui/preview_plaintorich.cpp \
qtgui/preview_plaintorich.h \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
440
441
442
443
444
445
446
447
448
449
450
451
qtgui/preview_w.cpp \
qtgui/preview_w.h \
qtgui/ptrans.ui \
qtgui/ptrans_w.cpp \
qtgui/ptrans_w.h \
qtgui/rclhelp.cpp \
qtgui/rclhelp.h \
qtgui/rclm_idx.cpp \
qtgui/rclm_preview.cpp \
qtgui/rclm_saveload.cpp \
qtgui/rclm_view.cpp \
qtgui/rclm_wins.cpp \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
452
453
454
qtgui/rclmain.ui \
qtgui/rclmain_w.cpp \
qtgui/rclmain_w.h \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
qtgui/rclzg.cpp \
qtgui/rclzg.h \
qtgui/recoll.h \
qtgui/recoll.pro.in \
qtgui/recoll.qrc \
qtgui/reslist.cpp \
qtgui/reslist.h \
qtgui/respopup.cpp \
qtgui/respopup.h \
qtgui/restable.cpp \
qtgui/restable.h \
qtgui/restable.ui \
qtgui/rtitool.cpp \
qtgui/rtitool.h \
qtgui/rtitool.ui \
qtgui/searchclause_w.cpp \
qtgui/searchclause_w.h \
qtgui/snippets.ui \
qtgui/snippets_w.cpp \
qtgui/snippets_w.h \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
475
476
qtgui/specialindex.h \
qtgui/specialindex.ui \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
477
478
479
480
481
qtgui/spell.ui \
qtgui/spell_w.cpp \
qtgui/spell_w.h \
qtgui/ssearch_w.cpp \
qtgui/ssearch_w.h \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
482
qtgui/ssearchb.ui \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
483
484
qtgui/systray.cpp \
qtgui/systray.h \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
485
qtgui/ui_rclmain.h-4.5 \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
486
487
488
489
490
491
qtgui/uiprefs.ui \
qtgui/uiprefs_w.cpp \
qtgui/uiprefs_w.h \
qtgui/viewaction.ui \
qtgui/viewaction_w.cpp \
qtgui/viewaction_w.h \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
492
493
494
495
496
497
498
499
500
501
qtgui/webcache.ui \
qtgui/webcache.cpp \
qtgui/webcache.h \
qtgui/widgets/editdialog.h \
qtgui/widgets/editdialog.ui \
qtgui/widgets/listdialog.h \
qtgui/widgets/listdialog.ui \
qtgui/widgets/qxtconfirmationmessage.cpp \
qtgui/widgets/qxtconfirmationmessage.h \
qtgui/widgets/qxtglobal.h \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
502
503
504
505
qtgui/xmltosd.cpp \
qtgui/xmltosd.h \
\
python/README.txt \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
506
python/recoll/Makefile.in \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
python/recoll/pyrclextract.cpp \
python/recoll/pyrecoll.cpp \
python/recoll/pyrecoll.h \
python/recoll/recoll/__init__.py \
python/recoll/recoll/rclconfig.py \
python/recoll/setup.py.in \
python/samples/docdups.py \
python/samples/mutt-recoll.py \
python/samples/rcldlkp.py \
python/samples/rclmbox.py \
python/samples/recollgui/Makefile \
python/samples/recollgui/qrecoll.py \
python/samples/recollgui/rclmain.ui \
python/samples/recollq.py \
python/samples/recollqsd.py \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
522
523
524
525
\
 \
sampleconf/fields sampleconf/fragbuts.xml sampleconf/mimeconf \
sampleconf/mimemap sampleconf/mimeview sampleconf/mimeview.mac \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
526
sampleconf/recoll.conf sampleconf/recoll.qss \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
527
\
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
528
unac/AUTHORS unac/COPYING unac/README unac/README.recoll unac/unac.c \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
529
530
\
VERSION
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
531

Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
532
533
534
535
# EXTRA_DIST: The Php Code does not build anymore. No need to ship it until
# someone fixes it:
# php/00README.txt php/recoll/config.m4 php/recoll/make.sh 
# php/recoll/php_recoll.h php/recoll/recoll.cpp php/sample/shell.php 
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
536

537
if MAKEPYTHON
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
538
539
all-local: recollpython
recollpython: librecoll.la
540
	${MAKE} -C python/recoll libdir=$(libdir)
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
541
542
install-exec-local: recollpython-install
recollpython-install:
543
544
545
546
547
548
549
	(cd python/recoll; \
        if test -f /etc/debian_version ; then \
            OPTSFORPYTHON=--install-layout=deb; \
        fi; \
        set -x; \
        python setup.py install \
         --prefix=${prefix} --root=$${DESTDIR:-/} $${OPTSFORPYTHON})
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
550
551
clean-local: recollpython-clean
recollpython-clean:
552
553
554
	rm -rf python/recoll/build
endif

Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
555
556
557
558
if MAKEQT
all-local: recollqt
recollqt: librecoll.la
	(cd $(QTGUI); ${QMAKE} PREFIX=${prefix} recoll.pro)
559
560
	$(MAKE) -C $(QTGUI) LFLAGS="$(LDFLAGS)" prefix=$(prefix) \
                exec_prefix=$(exec_prefix) libdir=$(libdir)
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
561
562
563
564
565
clean-local: recollqt-clean
recollqt-clean:
	-$(MAKE) -C $(QTGUI) clean
install-exec-local: recollqt-install
recollqt-install:
566
567
568
	$(MAKE) -C $(QTGUI) LFLAGS="$(LDFLAGS)" INSTALL_ROOT=$(DESTDIR) \
                prefix=$(prefix) exec_prefix=$(exec_prefix) libdir=$(libdir) \
                install
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
569
570
endif

571
572
defconfdir = $(pkgdatadir)/examples
defconf_DATA = \
573
574
desktop/recollindex.desktop \
index/rclmon.sh \
575
576
577
578
579
580
581
582
583
sampleconf/fragbuts.xml \
sampleconf/fields \
sampleconf/recoll.conf \
sampleconf/mimeconf \
sampleconf/recoll.qss \
sampleconf/mimemap \
sampleconf/mimeview 

filterdir = $(pkgdatadir)/filters
584
585
filter_DATA = \
desktop/hotrecoll.py \
586
587
588
589
590
591
592
filters/rcl7z \
filters/rclabw \
filters/rclaptosidman \
filters/rclaudio \
filters/rclcheckneedretry.sh \
filters/rclchm \
filters/rcldia \
593
filters/rcldjvu.py \
594
595
596
filters/rcldoc.py \
filters/rcldvi \
filters/rclepub \
597
filters/rclepub1 \
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
filters/rclexec1.py \
filters/rclexecm.py \
filters/rclfb2 \
filters/rclgaim \
filters/rclgnm \
filters/rclics \
filters/rclimg \
filters/rclimg.py \
filters/rclinfo \
filters/rclkar \
filters/rclkwd \
filters/rcllatinclass.py \
filters/rcllatinstops.zip \
filters/rcllyx \
filters/rclman \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
613
filters/rclpdf.py \
614
615
616
617
618
619
620
621
622
623
624
625
filters/rclokulnote \
filters/rclopxml.py \
filters/rclppt.py \
filters/rclps \
filters/rclpurple \
filters/rclpython \
filters/rclrar \
filters/rclrtf.py \
filters/rclscribus \
filters/rclshowinfo \
filters/rclsiduxman \
filters/rclsoff.py \
626
filters/rclsoff-flat.py \
627
628
629
630
631
632
633
634
635
636
filters/rclsvg.py \
filters/rcltar \
filters/rcltex \
filters/rcltext.py \
filters/rcluncomp \
filters/rcluncomp.py \
filters/rclwar \
filters/rclwpd \
filters/rclxls.py \
filters/rclxml.py \
637
filters/rclxmp.py \
638
639
filters/rclxslt.py \
filters/rclzip \
640
641
642
643
644
645
646
filters/ppt-dump.py \
filters/xls-dump.py \
filters/xlsxmltocsv.py \
filters/msodump.zip \
python/recoll/recoll/rclconfig.py 

install-data-hook: 
647
	(cd $(DESTDIR)/$(filterdir); \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
648
	chmod a+x rcl* ppt-dump.py xls-dump.py xlsxmltocsv.py hotrecoll.py; \
649
650
	chmod 0644 msodump.zip rclexecm.py rcllatinstops.zip rclconfig.py) 

651
if MAKEUSERDOC
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
652
653
rdocdir = $(pkgdatadir)/doc
rdoc_DATA = doc/user/usermanual.html doc/user/docbook-xsl.css 
654
doc/user/usermanual.html: doc/user/usermanual.xml
655
	mkdir -p doc/user
656
657
	test -f doc/user/Makefile  || \
		cp -p $(top_srcdir)/doc/user/Makefile doc/user
658
	$(MAKE) -C doc/user VPATH=$(VPATH):$(VPATH)/doc/user usermanual.html
659
endif
660

661
662
dist_man1_MANS = doc/man/recoll.1 doc/man/recollq.1 doc/man/recollindex.1
dist_man5_MANS = doc/man/recoll.conf.5
663
664

dist-hook:
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
665
	modified=`hg status | grep -v /$(distdir)/|grep -v debianunitysco`; \
Jean-Francois Dockes's avatar
Jean-Francois Dockes committed
666
667
	if test ! -z "$$modified"; then \
            echo Local directory is modified: $$modified ; exit 1; fi
668
	hg tag -f -m "Release $(VERSION) tagged" RECOLL-$(VERSION)
669