source: trunk/FACT++/Makefile.am@ 18192

Last change on this file since 18192 was 18190, checked in by tbretz, 9 years ago
Added pfminictrl
File size: 18.4 KB
Line 
1include aminclude.am
2
3#-------------------------------------------------------------------------
4
5ACLOCAL_AMFLAGS = -I .macro_dir
6
7SVN_REVISION = -DREVISION=\"`svnversion -n .`\"
8
9DIM_FLAGS = -DMIPSEL -DPROTOCOL=1 -Dunix -Dlinux
10BOOST_FLAGS = -DBOOST_DISABLE_ASSERTS
11
12AM_CPPFLAGS = -Idim/dim $(DIM_FLAGS) $(BOOST_FLAGS) $(ROOTCPPFLAGS) \
13 -Wall -Winit-self -Wpointer-arith -Wcast-align -Wextra -Wformat=2 \
14 $(SVN_REVISION)
15
16AM_CXXFLAGS = $(AM_CPPFLAGS) \
17 -Woverloaded-virtual -Wnon-virtual-dtor -Wshadow
18
19# -no-undefined
20AM_LDFLAGS = -module -avoid-version
21
22#$(man3_MANS): doxygen-doc
23#DX_CLEANFILES = everything to clean.
24# Add to MOSTLYCLEANFILES.
25
26#-------------------------------------------------------------------------
27
28# Executables which are build by default ('all')
29bin_PROGRAMS = \
30 dns \
31 log logtime time argv \
32 dimctrl \
33 dimserver \
34 datalogger \
35 ftmctrl \
36 fadctrl \
37 fscctrl \
38 gcn \
39 chatclient chatserv \
40 biasctrl drivectrl agilentctrl \
41 mcp feedback ratescan ratecontrol \
42 tngweather lidctrl gpsctrl pfminictrl sqmctrl pwrctrl \
43 magicweather magiclidar \
44 smartfact evtserver getevent \
45 temperature \
46 timecheck \
47 showlog \
48 fitsdump fitscheck fitsselect \
49 zfits
50
51if HAS_GUI
52bin_PROGRAMS += fact
53endif
54
55if HAS_DBUS
56bin_PROGRAMS += skypeclient
57endif
58
59if HAS_VIEWER
60bin_PROGRAMS += viewer
61endif
62
63if HAS_NOVA
64bin_PROGRAMS += moon
65endif
66
67if HAS_SQL
68if HAS_NOVA
69bin_PROGRAMS += makedata
70if HAS_ROOT
71bin_PROGRAMS += makeplots
72endif
73endif
74endif
75
76
77if HAS_LIBXP
78bin_PROGRAMS += did webDid
79endif
80
81# This is a trick to be able to build them but not having them in 'all'
82if IS_FALSE
83bin_PROGRAMS += \
84 ftm fsc fad \
85 test scheduler \
86 triggerschedule \
87 dclient5 dserver2 \
88 fitsloader fitsgrep \
89 sched astro readfits
90endif
91
92lib_LTLIBRARIES = \
93 libDim++.la libDim.la libDimExtension.la \
94 libConfiguration.la libStateMachine.la libTime.la libTools.la
95# libAstro.la
96
97if HAS_HELP2MAN
98dist_man1_MANS = \
99 biasctrl.man \
100 datalogger.man \
101 dimctrl.man \
102 dimserver.man \
103 drivectrl.man \
104 evtserver.man \
105 fadctrl.man \
106 feedback.man \
107 fitsdump.man \
108 fitscheck.man \
109 fitsselect.man \
110 fscctrl.man \
111 ftmctrl.man \
112 getevent.man \
113 gpsctrl.man \
114 lidctrl.man \
115 magiclidar.man \
116 magicweather.man \
117 mcp.man \
118 pfminictrl.man \
119 pwrctrl.man \
120 ratecontrol.man \
121 ratescan.man \
122 showlog.man \
123 smartfact.man \
124 sqmctrl.man \
125 temperature.man \
126 timecheck.man \
127 tngweather.man \
128 zfits.man
129endif
130
131#-------------------------------------------------------------------------
132
133CLEANFILES =
134
135dist_noinst_SCRIPTS = autogen.sh
136
137EXTRA_DIST = \
138 Doxyfile \
139 dim/DIM_Performance.pdf \
140 dim/LICENSE.GPL \
141 dim/README.txt \
142 dim/README_v9.txt \
143 dim/README_v10.txt \
144 dim/README_v11.txt \
145 dim/README_v12.txt \
146 dim/README_v13.txt \
147 dim/README_v14.txt \
148 dim/README_v17.txt \
149 dim/README_v16.txt \
150 dim/README_v17.txt \
151 dim/README_v18.txt \
152 dim/README_v19.txt
153
154dns_LDADD = libDim.la libDimExtension.la
155dns_SOURCES = src/dns.c
156#dns_CPPFLAGS = $(AM_CPPFLAGS) $(DIM_FLAGS)
157
158did_LDADD = libDim.la
159did_CPPFLAGS = $(AM_CPPFLAGS) -Idim/src/did
160did_SOURCES = \
161 dim/src/did/did.c dim/src/did/did.h \
162 dim/src/did/dui_util.c dim/src/did/dui_util.h \
163 dim/src/did/dui_colors.h
164
165webDid_LDADD = libDim.la
166webDid_CPPFLAGS = $(AM_CPPFLAGS) -Idim/src/did
167webDid_SOURCES = \
168 dim/src/webDid/webDid.c \
169 src/webServer.c \
170 dim/src/webDid/webTcpip.c
171
172
173#libDim_la_CPPFLAGS = $(AM_CPPFLAGS) $(DIM_FLAGS)
174libDim_ladir =
175libDim_la_HEADERS = \
176 dim/dim/dic.h \
177 dim/dim/dim_common.h \
178 dim/dim/dim.h \
179 dim/dim/dim_tcpip.h \
180 dim/dim/dis.h
181
182libDim_la_SOURCES = \
183 dim/src/dic.c \
184 dim/src/dis.c \
185 dim/src/dna.c \
186 dim/src/sll.c \
187 dim/src/dll.c \
188 dim/src/hash.c \
189 dim/src/swap.c \
190 dim/src/copy_swap.c \
191 dim/src/open_dns.c \
192 dim/src/conn_handler.c \
193 dim/src/tcpip.c \
194 dim/src/dtq.c \
195 dim/src/dim_thr.c \
196 dim/src/utilities.c
197
198libDimExtension_la_SOURCES = src/DimSetup.cc src/DimSetup.h
199
200#libDimCpp_la_CXXFLAGS = $(AM_CXXFLAGS) $(DIM_FLAGS)
201libDim___ladir =
202libDim___la_HEADERS = \
203 dim/dim/dic.hxx \
204 dim/dim/dis.hxx \
205 dim/dim/dim_core.hxx \
206 dim/dim/dim.hxx \
207 dim/dim/dim_tcpip.h \
208 dim/dim/dllist.hxx \
209 dim/dim/sllist.hxx \
210 dim/dim/tokenstring.hxx \
211 src/Dim.h
212libDim___la_SOURCES = \
213 dim/src/diccpp.cxx \
214 dim/src/dimcpp.cxx \
215 dim/src/discpp.cxx \
216 dim/src/tokenstring.cxx
217
218# Divide into Readline / StateMachine / StateMachineDim / Tools?
219libStateMachine_la_SOURCES = \
220 src/WindowLog.h src/WindowLog.cc \
221 src/Readline.h src/Readline.cc \
222 src/ReadlineColor.h src/ReadlineColor.cc \
223 src/ReadlineWindow.h src/ReadlineWindow.cc \
224 src/Console.h src/Console.cc \
225 src/Shell.h src/Shell.cc \
226 \
227 src/EventImp.h src/EventImp.cc \
228 src/Event.h src/Event.cc \
229 src/State.h src/State.cc \
230 src/Description.h src/Description.cc \
231 src/MessageImp.h src/MessageImp.cc \
232 src/Converter.h src/Converter.cc \
233 src/StateMachineImp.h src/StateMachineImp.cc \
234 src/StateMachine.h src/StateMachine.cc \
235 \
236 src/EventDim.h \
237 src/MessageDim.h src/MessageDim.cc \
238 src/StateMachineDim.h src/StateMachineDim.cc \
239 src/DimServerList.h src/DimServerList.cc \
240 src/DimServiceInfoList.h src/DimServiceInfoList.cc \
241 src/DimNetworkList.h src/DimNetwork.cc \
242 src/ServiceList.h src/ServiceList.cc \
243 src/DimErrorRedirecter.h \
244 src/DimErrorRedirecter.cc \
245 src/DimDescriptionService.h \
246 src/DimDescriptionService.cc \
247 \
248 src/Connection.h src/Connection.cc \
249 src/ConnectionUSB.h src/ConnectionUSB.cc \
250 \
251 FACT.h ByteOrder.h \
252 \
253 src/DimWriteStatistics.h src/DimWriteStatistics.cc
254
255libConfiguration_la_SOURCES = \
256 src/Configuration.h src/Configuration.cc \
257 src/FACT.h src/FACT.cc
258
259libTime_la_SOURCES = src/Time.h src/Time.cc
260#libAstro_la_SOURCES = src/Astro.h src/Astro.cc
261libTools_la_SOURCES = src/tools.h src/tools.cc
262
263
264dserver2_SOURCES = src/dserver2.cc
265dserver2_LDADD = libTime.la libTools.la
266
267ftm_SOURCES = src/ftm.cc src/HeadersFTM.cc
268ftm_LDADD = libTime.la libTools.la libDim++.la libDim.la libConfiguration.la libDimExtension.la
269
270fad_SOURCES = src/fad.cc src/HeadersFAD.cc
271fad_LDADD = libTime.la libTools.la libTools.la libDim++.la libDim.la libConfiguration.la libDimExtension.la
272
273fsc_SOURCES = src/fsc.cc
274fsc_LDADD = libTime.la libTools.la
275
276
277log_SOURCES = src/log.cc
278log_LDADD = libDim++.la libDim.la libStateMachine.la libTime.la libTools.la
279
280
281logtime_SOURCES = src/logtime.cc
282logtime_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la
283
284moon_SOURCES = src/moon.cc
285moon_LDADD = libTime.la libConfiguration.la
286
287makeplots_SOURCES = src/makeplots.cc
288makeplots_LDADD = $(ROOTLDFLAGS) $(ROOTLIBS) libTime.la libConfiguration.la
289
290makedata_SOURCES = src/makedata.cc
291makedata_LDADD = libTime.la libConfiguration.la
292
293
294chatserv_SOURCES = src/chatserv.cc src/LocalControl.h
295chatserv_LDADD = libStateMachine.la libTools.la libConfiguration.la libTime.la \
296 libDim++.la libDim.la libDimExtension.la
297
298
299dclient5_SOURCES = src/dclient5.cc src/LocalControl.h
300dclient5_LDADD = libDim++.la libDim.la libStateMachine.la libTime.la libTools.la \
301 libConfiguration.la
302
303ftmctrl_SOURCES = src/ftmctrl.cc src/LocalControl.h src/HeadersFTM.cc
304ftmctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
305 libStateMachine.la libTime.la libTools.la \
306 libConfiguration.la
307
308drivectrl_SOURCES = src/drivectrl.cc src/LocalControl.h src/HeadersFTM.cc
309drivectrl_LDADD = libDim++.la libDim.la libDimExtension.la \
310 libStateMachine.la libTools.la libTime.la \
311 libConfiguration.la
312
313agilentctrl_SOURCES = src/agilentctrl.cc src/LocalControl.h src/HeadersAgilent.h
314agilentctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
315 libStateMachine.la libTools.la libTime.la \
316 libConfiguration.la
317
318magicweather_SOURCES = src/magicweather.cc src/LocalControl.h
319magicweather_LDADD = libDim++.la libDim.la libDimExtension.la \
320 libStateMachine.la libTools.la libTime.la \
321 libConfiguration.la
322
323magiclidar_SOURCES = src/magiclidar.cc src/LocalControl.h
324magiclidar_LDADD = libDim++.la libDim.la libDimExtension.la \
325 libStateMachine.la libTools.la libTime.la \
326 libConfiguration.la
327
328tngweather_SOURCES = src/tngweather.cc src/LocalControl.h
329tngweather_LDADD = libDim++.la libDim.la libDimExtension.la \
330 libStateMachine.la libTools.la libTime.la \
331 libConfiguration.la -lQtXml
332
333lidctrl_SOURCES = src/lidctrl.cc src/LocalControl.h
334lidctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
335 libStateMachine.la libTools.la libTime.la \
336 libConfiguration.la -lQtXml
337
338gpsctrl_SOURCES = src/gpsctrl.cc src/LocalControl.h
339gpsctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
340 libStateMachine.la libTools.la libTime.la \
341 libConfiguration.la
342
343pfminictrl_SOURCES = src/pfminictrl.cc src/LocalControl.h
344pfminictrl_LDADD = libDim++.la libDim.la libDimExtension.la \
345 libStateMachine.la libTools.la libTime.la \
346 libConfiguration.la
347
348sqmctrl_SOURCES = src/sqmctrl.cc src/LocalControl.h
349sqmctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
350 libStateMachine.la libTools.la libTime.la \
351 libConfiguration.la
352
353temperature_SOURCES = src/temperature.cc src/LocalControl.h
354temperature_LDADD = libDim++.la libDim.la libDimExtension.la \
355 libStateMachine.la libTools.la libTime.la \
356 libConfiguration.la
357
358pwrctrl_SOURCES = src/pwrctrl.cc src/LocalControl.h \
359 src/HeadersPower.h src/HeadersPower.cc
360pwrctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
361 libStateMachine.la libTools.la libTime.la \
362 libConfiguration.la -lQtXml
363
364timecheck_SOURCES = src/timecheck.cc src/LocalControl.h
365timecheck_LDADD = libDim++.la libDim.la libDimExtension.la \
366 libStateMachine.la libTools.la libTime.la \
367 libConfiguration.la
368
369smartfact_SOURCES = src/smartfact.cc src/LocalControl.h src/PixelMap.cc
370smartfact_LDADD = libDim++.la libDim.la libDimExtension.la \
371 libStateMachine.la libTools.la libTime.la \
372 libConfiguration.la
373
374evtserver_SOURCES = src/evtserver.cc src/LocalControl.h
375evtserver_LDADD = libDim++.la libDim.la libDimExtension.la \
376 libStateMachine.la libTools.la libTime.la \
377 libConfiguration.la
378
379getevent_SOURCES = src/getevent.cc
380getevent_LDADD = libTools.la libTime.la libConfiguration.la
381
382fadctrl_SOURCES = src/fadctrl.cc src/LocalControl.h src/HeadersFAD.cc \
383 src/EventBuilder.cc src/EventBuilder.h \
384 src/DataProcessorImp.cc src/DataProcessorImp.h \
385 src/DataCalib.cc src/DataCalib.h \
386 src/DataWriteRaw.cc src/DataWriteRaw.h \
387 src/DrsCalib.h
388if HAS_FITS
389fadctrl_SOURCES += src/FitsFile.h src/FitsFile.cc \
390 src/DataWriteFits.cc src/DataWriteFits.h \
391 src/DataWriteFits2.cc src/DataWriteFits2.h
392endif
393fadctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
394 libStateMachine.la libTools.la libTime.la \
395 libConfiguration.la
396
397fscctrl_SOURCES = src/fscctrl.cc src/LocalControl.h
398fscctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
399 libStateMachine.la libTools.la libTime.la \
400 libConfiguration.la
401
402gcn_SOURCES = src/gcn.cc src/LocalControl.h
403gcn_LDADD = libDim++.la libDim.la libDimExtension.la \
404 libStateMachine.la libTools.la libTime.la \
405 libConfiguration.la -lQtXml
406
407biasctrl_SOURCES = src/biasctrl.cc src/LocalControl.h src/PixelMap.cc
408biasctrl_LDADD = libDim++.la libDim.la libDimExtension.la \
409 libStateMachine.la libTools.la libTime.la \
410 libConfiguration.la
411
412mcp_SOURCES = src/mcp.cc src/LocalControl.h
413mcp_LDADD = libDim++.la libDim.la libDimExtension.la \
414 libStateMachine.la libTools.la libTime.la \
415 libConfiguration.la
416
417feedback_SOURCES = src/feedback.cc src/LocalControl.h src/PixelMap.cc
418feedback_LDADD = libDim++.la libDim.la libDimExtension.la \
419 libStateMachine.la libTools.la libTime.la \
420 libConfiguration.la
421
422ratescan_SOURCES = src/ratescan.cc src/LocalControl.h src/PixelMap.cc
423ratescan_LDADD = libDim++.la libDim.la libDimExtension.la \
424 libStateMachine.la libTools.la libTime.la \
425 libConfiguration.la
426
427ratecontrol_SOURCES = src/ratecontrol.cc src/LocalControl.h src/PixelMap.cc
428ratecontrol_LDADD = libDim++.la libDim.la libDimExtension.la \
429 libStateMachine.la libTools.la libTime.la \
430 libConfiguration.la
431
432
433argv_SOURCES = src/argv.cc
434argv_LDADD = libConfiguration.la
435
436
437dimctrl_SOURCES = src/dimctrl.cc \
438 src/StateMachineDimControl.cc src/StateMachineDimControl.h \
439 src/RemoteControl.cc src/RemoteControl.h \
440 src/InterpreterV8.cc src/InterpreterV8.h \
441 src/DimState.cc src/DimState.h
442dimctrl_LDADD = libStateMachine.la libTools.la libTime.la \
443 libDim++.la libDim.la libDimExtension.la libConfiguration.la
444
445dimserver_SOURCES = $(dimctrl_SOURCES)
446dimserver_LDADD = $(dimctrl_LDADD)
447
448
449chatclient_SOURCES = src/chatclient.cc src/ChatClient.h
450chatclient_LDADD = libStateMachine.la libTools.la libTime.la \
451 libDim++.la libDim.la libDimExtension.la libConfiguration.la
452
453skypeclient_SOURCES = src/skypeclient.cc src/ChatClient.h
454skypeclient_LDADD = libStateMachine.la libTools.la libTime.la \
455 libDim++.la libDim.la libDimExtension.la libConfiguration.la
456
457
458time_SOURCES = src/time.cc
459time_LDADD = libTime.la
460
461#astro_SOURCES = src/astro.cc
462#astro_LDADD = libAstro.la libTime.la
463
464test_SOURCES = src/test.cc
465test_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la
466
467datalogger_SOURCES = src/datalogger.cc src/LocalControl.h src/DimState.cc src/DimState.h
468if HAS_FITS
469datalogger_SOURCES += src/FitsFile.h src/FitsFile.cc src/Fits.h src/Fits.cc
470endif
471datalogger_LDADD = libDim++.la libDim.la libDimExtension.la \
472 libStateMachine.la libTools.la libTime.la \
473 libConfiguration.la
474
475scheduler_SOURCES = src/scheduler.cc src/LocalControl.h
476scheduler_LDADD = libStateMachine.la libTools.la libTime.la \
477 libDim++.la libDim.la libDimExtension.la libConfiguration.la
478
479fitsloader_SOURCES = src/fitsloader.cc src/LocalControl.h
480fitsloader_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la
481
482fitsdump_SOURCES = src/fitsdump.cc
483fitsdump_LDADD = $(ROOTLDFLAGS) $(ROOTLIBS) libTools.la libConfiguration.la libTime.la
484
485fitscheck_SOURCES = src/fitscheck.cc
486fitscheck_LDADD = libConfiguration.la
487
488fitsselect_SOURCES = src/fitsselect.cc
489fitsselect_LDADD = libConfiguration.la
490
491
492readfits_SOURCES = src/readfits.cc src/ReadFits.h
493readfits_LDADD = libStateMachine.la libTools.la libTime.la libDim++.la libDim.la libConfiguration.la
494
495zfits_SOURCES = src/zfits.cc externals/huffmans.h
496zfits_LDADD = libTime.la libConfiguration.la
497
498showlog_SOURCES = src/showlog.cc
499showlog_LDADD = libTime.la libTools.la libConfiguration.la -lncurses src/WindowLog.lo
500
501triggerschedule_SOURCES = src/triggerschedule.cc
502triggerschedule_LDADD = libDim++.la libDim.la libDimExtension.la libConfiguration.la
503
504#fitsCompressor_SOURCES = src/fitsCompressor.cc
505#fitsCompressor_LDADD = libConfiguration.la
506
507#fitsgrep_SOURCES = src/fitsgrep.cc
508#fitsgrep_LDADD = libConfiguration.la
509
510# -----
511
512if HAS_GUI
513
514fact_DIALOGS = \
515 gui/design.ui
516
517fact_RESOURCES = \
518 gui/design.qrc
519
520fact_QT_SOURCES = \
521 gui/DockWindow.cc \
522 gui/MainWindow.cc \
523 gui/QCameraWidget.cc \
524 gui/BasicGlCamera.cc
525
526fact_SRCADD = $(fact_DIALOGS:.ui=.h) $(fact_RESOURCES:.qrc=.cc) $(fact_QT_SOURCES:.cc=.moc.cc)
527
528endif
529
530# -----
531
532if HAS_VIEWER
533
534viewer_DIALOGS = \
535 gui/RawEventsViewer/viewer.ui
536
537viewer_QT_SOURCES = \
538 gui/RawEventsViewer/RawEventsViewer.cc \
539 gui/BasicGlCamera.cc \
540 gui/QCameraWidget.cc \
541 gui/Q3DCameraWidget.cc
542
543viewer_SRCADD = $(viewer_DIALOGS:.ui=.h) $(viewer_RESOURCES:.qrc=.cc) $(viewer_QT_SOURCES:.cc=.moc.cc)
544
545endif
546
547
548
549BUILT_SOURCES = $(fact_SRCADD) $(viewer_SRCADD)
550
551CLEANFILES += $(BUILT_SOURCES)
552
553EXTRA_DIST += \
554 $(fact_DIALOGS) $(fact_RESOURCES) \
555 $(viewer_DIALOGS) $(viewer_RESOURCES)
556
557fact_LDADD = $(ROOTLDFLAGS) $(ROOTGLIBS) $(QT4_LIB) $(QT4_LDFLAGS) -L. \
558 libDim++.la libDim.la libDimExtension.la \
559 libTools.la libStateMachine.la libTime.la libTools.la \
560 libConfiguration.la
561
562fact_SOURCES = $(fact_SRCADD) $(fact_QT_SOURCES) \
563 gui/CheckBoxDelegate.cc gui/HtmlDelegate.cc \
564 gui/fact.cc gui/FactGui.cc src/HeadersFTM.cc \
565 src/PixelMap.cc
566
567# Switch off most qwt warnings
568viewer_CXXFLAGS = $(AM_CXXFLAGS) -Wno-shadow
569
570viewer_LDADD = $(QT4_LIB) $(QT4_LDFLAGS) -L. -lQtOpenGL -lGLU \
571 libDimExtension.la \
572 libConfiguration.la libStateMachine.la libTools.la \
573 libTime.la libDim++.la libDim.la
574
575viewer_SOURCES = $(viewer_SRCADD) $(viewer_QT_SOURCES) \
576 src/DataProcessorImp.cc src/DataProcessorImp.h \
577 src/FitsFile.cc src/FitsFile.h \
578 src/Fits.cc src/Fits.h \
579 src/PixelMap.cc
580
581
582
583#-------------------------------------------------------------------------
584
585SUFFIXES = .moc.cc
586
587.ui.h: $<
588 $(AM_V_GEN)$(UIC4) $< -o $@
589
590.h.moc.cc: $<
591 $(AM_V_GEN)$(MOC4) $(EXTRA_CPPFLAGS) $< -o $@
592
593.qrc.cc: $<
594 $(AM_V_GEN)$(RCC4) -name `echo "$<" | sed 's|^.*/\(.*\)\.qrc$$|\1|'` $< -o $@
595
596
597#-------------------------------------------------------------------------
598
599MAN_TARGETS = $(dist_man1_MANS)
600
601if HAS_GROFF
602
603MAN_TARGETS += $(dist_man1_MANS:.man=.html)
604EXTRA_DIST += $(dist_man1_MANS:.man=.html)
605CLEANFILES += $(dist_man1_MANS:.man=.html)
606
607if HAS_PS2PDF
608
609MAN_TARGETS += $(dist_man1_MANS:.man=.pdf)
610EXTRA_DIST += $(dist_man1_MANS:.man=.pdf)
611CLEANFILES += $(dist_man1_MANS:.man=.pdf)
612endif
613
614endif
615
616if HAS_JSDOC
617JAVA_SCRIPT_DOC=jsdoc
618endif
619
620$(dist_man1_MANS): $(dist_man1_MANS:.man=)
621 @mkdir -p man
622 $(AM_V_GEN)help2man -N -o $@ -m $(@:.man=) ./$(@:.man=)
623
624.man.html: $<
625 $(AM_V_GEN)groff -mandoc `man -w -l $<` -T html > $@
626
627.man.pdf: $<
628 $(AM_V_GEN)groff -mandoc `man -w -l $<` | ps2pdf - $@
629
630jsdoc:
631 @rm -rf www/dimctrl
632 $(AM_V_GEN)jsdoc -r=2 -d=www/dimctrl scripts | grep -v ^java
633
634
635doc: $(MAN_TARGETS) $(JAVA_SCRIPT_DOC) doxygen-run
636 @cd doxygen-doc/html
637 @ln -s index.html main.html
638 @mkdir -p pdf
639 @mkdir -p man
640 @cd pdf
641 @ln -sf ../../../*.pdf .
642 @cd ../man
643 @ln -sf ../../../*.html .
644 @cd ../../..
645
646diff:
647 @svn diff | $(COLORDIFF)
648
649rdiff:
650 @svn diff -r BASE:HEAD . externals | $(COLORDIFF)
651
652status:
653 @svn status -u | grep -v ^\?
654
655#-------------------------------------------------------------------------
656
657# Overwrite rules for silent or other verbosity levels
658#AM_V_MAN = $(AM_MAN_$(V))
659#AM_MAN_ = $(AM_V_GEN)
660#AM_MAN_0 = @echo " MAN "$@;
661
662#$(MyAnalysisDS): $(MyAnalysisH) $(MyAnalysisL)
663# $(ROOTCINT) -f $@ -c -I$(top_builddir)/config $(INCLUDES) $^
664# rootcint_files=`echo $@ | sed -ne 's/\(.*\)\..*/\1.cxx \1.h/p'` && \
665# $(top_srcdir)/config/runsed $(top_srcdir)/config/rootcint.sed $$rootcint_files && \
666# for i in $$rootcint_files; do \
667# if test ! `diff $$i $(srcdir)/$$i >/dev/null 2>&1`; then \
668# cp $$i $(srcdir)/; \
669# fi; \
670# done
671
672#CLEANFILES = *~ *.rej *.orig
673#MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in \
674# stamp-h.in stamp-h[0-9].in
675#DISTCLEANFILES = config.cache config.log
Note: See TracBrowser for help on using the repository browser.