File: Makefile.in

package info (click to toggle)
recoll 1.17.3-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 8,220 kB
  • ctags: 5,349
  • sloc: cpp: 40,411; sh: 5,457; ansic: 2,419; python: 2,036; makefile: 941; perl: 116; php: 25
file content (81 lines) | stat: -rw-r--r-- 2,496 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Copyright (C) 2005 J.F.Dockes

prefix = @prefix@
exec_prefix = @exec_prefix@

bindir = @bindir@
datadir = @datadir@
datarootdir = @datarootdir@
mandir = @mandir@

QMAKE = @QMAKE@
QTGUI = @QTGUI@

all: mk/sysconf 
	${MAKE} -C lib
	${MAKE} -C index recollindex
	@NOQTMAKE@(cd $(QTGUI); ${QMAKE} recoll.pro)
	@NOQTMAKE@${MAKE} -C $(QTGUI) depth=..
	@NOPYTHON@${MAKE} -C python/recoll
	${MAKE} -C query recollq

mk/sysconf:
	@echo "You need to run configure first" ; exit 1

static: mk/sysconf
	${MAKE} -C lib
	rm -f index/recollindex
	${MAKE} -C index BSTATIC=-Wl,-Bstatic BDYNAMIC=-Wl,-Bdynamic \
            LIBXAPIANSTATICEXTRA="@LIBXAPIANSTATICEXTRA@" \
	       recollindex 
	@NOQTMAKE@(cd $(QTGUI); $(QMAKE) recoll.pro)
	@NOQTMAKE@rm -f $(QTGUI)/recoll
	@NOQTMAKE@${MAKE} -C $(QTGUI) BSTATIC=-Wl,-Bstatic \
	@NOQTMAKE@   BDYNAMIC=-Wl,-Bdynamic depth=.. \
	@NOQTMAKE@   LIBXAPIANSTATICEXTRA="@LIBXAPIANSTATICEXTRA@"

clean:
	${MAKE} -C common clean
	${MAKE} -C index clean
	${MAKE} -C internfile clean
	${MAKE} -C lib clean
	${MAKE} -C query clean
	${MAKE} -C utils clean
	-${MAKE} -C desktop/unity-lens-recoll clean
	-${MAKE} -C python/recoll clean
	@NOQTMAKE@@-${MAKE} -C $(QTGUI) clean
	rm -f qtgui/Makefile qtgui/confgui/Makefile qtgui/recoll
	rm -f filters/rclexecm.pyc
	rm -rf qtgui/.moc qtgui/.ui qtgui/confgui/.moc qtgui/confgui/.ui
	rm -rf qtgui/.obj qtgui/.moc qtgui/.ui 
	rm -rf python/recoll/build
	rm -rf $(QTGUI)/recoll.app

# Note: we don't remove the top Makefile, to keep the "clean" targets
# available but a "Make" won't work without a configure anyway
distclean: clean
	-${MAKE} -C desktop/unity-lens-recoll distclean
	-${MAKE} -C python/recoll distclean
	rm -f mk/sysconf mk/localdefs sampleconf/recoll.conf \
	   qtgui/recoll.pro \
	   config.log config.status \
	   recollinstall \
	   lib/*.dep common/autoconfig.h
	rm -f common/rclversion.h
	rm -f index/alldeps lib/alldeps query/alldeps bincimapmime/alldeps
	rm -rf autom4te.cache

maintainer-clean: distclean
	rm -f doc/user/*.html* doc/user/*.txt doc/user/HTML.manifest
	rm -f qtgui/i18n/*.qm

# recollinstall can be executed by the user and will compute 'normal'
# values for bindir etc., relative to the prefix argument.  When executed
# here, we pass a bunch of variables in the environment, the values will
# override the computed defaults.
install: all
	DESTDIR=${DESTDIR} bindir=${bindir} datadir=${datadir} \
	mandir=${mandir} \
	/bin/sh ./recollinstall ${prefix}

.PHONY: all static clean distclean install