]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/bat.pro.in
Tweak bacula.spec.in and fix bat install to use DESTDIR
[bacula/bacula] / bacula / src / qt-console / bat.pro.in
1 ######################################################################
2 # Version $Id$
3 #
4 #   !!!!!!! IMPORTANT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5 #
6 #      Edit only bat.pro.in  -- bat.pro is built by the ./configure program
7 #
8 #   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9 #    
10 CONFIG += qt debug @QWT@
11
12 bins.path = /$(DESTDIR)@sbindir@
13 bins.files = bat
14 confs.path = /$(DESTDIR)@sysconfdir@
15 confs.commands = DESTDIR="${DESTDIR}" ./install_conf_file   
16 help.path = /$(DESTDIR)@htmldir@
17 help.files = help/*.html images/status.png images/mail-message-new.png
18
19 TEMPLATE     = app
20 TARGET       = bat
21 DEPENDPATH  += .
22 INCLUDEPATH += .. . ./console ./restore ./select
23 LIBS        += -L../lib -lbaccfg -lbac @OPENSSL_LIBS@
24 LIBTOOL_LINK = @QMAKE_LIBTOOL@ --silent --tag=CXX --mode=link
25 LIBTOOL_INSTALL = @QMAKE_LIBTOOL@ --silent --mode=install
26 QMAKE_LINK   = $${LIBTOOL_LINK} $(CXX)
27 QMAKE_INSTALL_PROGRAM = $${LIBTOOL_INSTALL} install -m 0754 -p
28 QMAKE_CLEAN += .libs/* bat
29
30 qwt {
31   INCLUDEPATH += @QWT_INC@ 
32   LIBS        += @QWT_LDFLAGS@ @QWT_LIB@
33 }
34
35 RESOURCES    = main.qrc
36 MOC_DIR      = moc
37 OBJECTS_DIR  = obj
38 UI_DIR       = ui
39
40 # Main window
41 FORMS += main.ui 
42 FORMS += prefs.ui
43 FORMS += label/label.ui 
44 FORMS += relabel/relabel.ui 
45 FORMS += mount/mount.ui
46 FORMS += console/console.ui
47 FORMS += restore/restore.ui restore/prerestore.ui restore/brestore.ui
48 FORMS += restore/restoretree.ui
49 FORMS += run/run.ui run/runcmd.ui run/estimate.ui run/prune.ui
50 FORMS += select/select.ui
51 FORMS += medialist/medialist.ui mediaedit/mediaedit.ui joblist/joblist.ui
52 FORMS += clients/clients.ui storage/storage.ui fileset/fileset.ui
53 FORMS += joblog/joblog.ui jobs/jobs.ui
54 FORMS += help/help.ui
55 FORMS += status/dirstat.ui
56 FORMS += status/clientstat.ui
57 FORMS += status/storstat.ui
58 qwt {
59   FORMS += jobgraphs/jobplotcontrols.ui
60 }
61
62 # Main directory
63 HEADERS += mainwin.h bat.h bat_conf.h qstd.h pages.h
64 SOURCES += main.cpp bat_conf.cpp mainwin.cpp qstd.cpp pages.cpp
65
66 # bcomm
67 HEADERS += bcomm/dircomm.h
68 SOURCES += bcomm/dircomm.cpp bcomm/dircomm_auth.cpp
69
70 # Console
71 HEADERS += console/console.h
72 SOURCES += console/console.cpp
73
74 # Restore
75 HEADERS += restore/restore.h
76 SOURCES += restore/prerestore.cpp restore/restore.cpp restore/brestore.cpp
77
78 # Label dialog
79 HEADERS += label/label.h
80 SOURCES += label/label.cpp
81
82 # Relabel dialog
83 HEADERS += relabel/relabel.h
84 SOURCES += relabel/relabel.cpp
85
86 # Mount dialog
87 HEADERS += mount/mount.h
88 SOURCES += mount/mount.cpp
89
90 # Run dialog
91 HEADERS += run/run.h
92 SOURCES += run/run.cpp run/runcmd.cpp run/estimate.cpp run/prune.cpp
93
94 # Select dialog
95 HEADERS += select/select.h
96 SOURCES += select/select.cpp
97
98 ## MediaList
99 HEADERS += medialist/medialist.h
100 SOURCES += medialist/medialist.cpp
101
102 ## MediaEdit
103 HEADERS += mediaedit/mediaedit.h
104 SOURCES += mediaedit/mediaedit.cpp
105
106 ## JobList
107 HEADERS += joblist/joblist.h
108 SOURCES += joblist/joblist.cpp
109
110 ## Clients
111 HEADERS += clients/clients.h
112 SOURCES += clients/clients.cpp
113
114 ## Storage
115 HEADERS += storage/storage.h
116 SOURCES += storage/storage.cpp
117
118 ## Fileset
119 HEADERS += fileset/fileset.h
120 SOURCES += fileset/fileset.cpp
121
122 ## Job log
123 HEADERS += joblog/joblog.h
124 SOURCES += joblog/joblog.cpp
125
126 ## Jobs
127 HEADERS += jobs/jobs.h
128 SOURCES += jobs/jobs.cpp
129
130 ## RestoreTree
131 HEADERS += restore/restoretree.h
132 SOURCES += restore/restoretree.cpp
133
134 ## Job Step Graphs
135 qwt {
136   HEADERS += jobgraphs/jobplot.h
137   SOURCES += jobgraphs/jobplot.cpp
138 }
139
140 # Help dialog
141 HEADERS += help/help.h
142 SOURCES += help/help.cpp
143
144 ## Status Dir
145 HEADERS += status/dirstat.h
146 SOURCES += status/dirstat.cpp
147
148 ## Status Client
149 HEADERS += status/clientstat.h
150 SOURCES += status/clientstat.cpp
151
152 ## Status Client
153 HEADERS += status/storstat.h
154 SOURCES += status/storstat.cpp
155
156 # Utility sources
157 HEADERS += util/fmtwidgetitem.h util/comboutil.h
158 SOURCES += util/fmtwidgetitem.cpp util/comboutil.cpp
159
160 INSTALLS = bins confs help
161
162 QMAKE_EXTRA_TARGETS += depend
163
164 TRANSLATIONS += ts/bat_fr.ts ts/bat_de.ts