Switch to unified view

a/src/Makefile b/src/Makefile
1
# @(#$Id: Makefile,v 1.11 2005-11-12 11:26:09 dockes Exp $  (C) 2005 J.F.Dockes
2
3
# Default values. These can be overridden on the command line ie: 
4
# make PREFIX=/usr
1
PREFIX=/usr/local
5
PREFIX=/usr/local
2
INSTALL = install -c
6
INSTALL = install -c
3
7
4
all: mk/sysconf
8
all: mk/sysconf
5
    cd lib; ${MAKE}
9
    cd lib; ${MAKE}
6
    cd bincimapmime; ${MAKE}
10
    cd bincimapmime; ${MAKE}
7
  cd index; ${MAKE}
11
  cd index; rm -f recollindex; ${MAKE} recollindex
8
    cd qtgui; qmake recoll.pro; rm -f recoll; ${MAKE}
12
    cd qtgui; qmake recoll.pro; rm -f recoll; \
13
     cat ../mk/commondefs ../mk/sysconf Makefile | ${MAKE} -f -
9
14
10
mk/sysconf:
15
mk/sysconf:
11
    ./configure
16
    ./configure
12
17
13
static:
18
static:
14
  rm -f index/recollindex qtgui/recoll
15
    cd lib; ${MAKE}
19
    cd lib; ${MAKE}
16
    cd bincimapmime; ${MAKE}
20
    cd bincimapmime; ${MAKE}
21
  cd index; rm -f recollindex; \
17
    cd index; ${MAKE} BSTATIC=-Wl,-Bstatic BDYNAMIC=-Wl,-Bdynamic
22
       ${MAKE} BSTATIC=-Wl,-Bstatic BDYNAMIC=-Wl,-Bdynamic
18
  cd qtgui; qmake recoll.pro; ${MAKE} BSTATIC=-Wl,-Bstatic BDYNAMIC=-Wl,-Bdynamic
23
  cd qtgui; qmake recoll.pro; rm -f recoll \
24
     cat ../mk/commondefs ../mk/sysconf Makefile | ${MAKE} -f - \
25
         BSTATIC=-Wl,-Bstatic BDYNAMIC=-Wl,-Bdynamic
19
26
20
clean:
27
clean:
21
    cd common; ${MAKE} clean
28
    cd common; ${MAKE} clean
22
    cd index; ${MAKE} clean
29
    cd index; ${MAKE} clean
23
    cd lib; ${MAKE} clean
30
    cd lib; ${MAKE} clean
...
...
25
    cd query; ${MAKE} clean
32
    cd query; ${MAKE} clean
26
    cd utils; ${MAKE} clean
33
    cd utils; ${MAKE} clean
27
    @-cd qtgui; ${MAKE} clean
34
    @-cd qtgui; ${MAKE} clean
28
    rm -f qtgui/Makefile qtgui/preview/Makefile qtgui/recoll
35
    rm -f qtgui/Makefile qtgui/preview/Makefile qtgui/recoll
29
36
37
distclean: clean
38
  rm -f mk/sysconf 
39
30
install: all
40
install: all
31
    ./recollinstall ${PREFIX}
41
    ./recollinstall ${PREFIX}
32
42
33
installme:
43
installme:
34
    ./recollinstall
44
    ./recollinstall