-
Notifications
You must be signed in to change notification settings - Fork 3
/
GNUmakefile
476 lines (414 loc) · 15.6 KB
/
GNUmakefile
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
82
83
84
85
86
87
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
120
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
#===============================================================================
# File and Version Information:
# $Id$
#
# Description:
# Makefile for the RooUnfold package
#
# Instructions:
# o Make sure that ROOT (root-config actually) is installed in your PATH, or else
# that the ROOTSYS environment variable is set and points to your ROOT release.
# If not set up by default, this can be done
# with: . PATH_TO_ROOT/bin/thisroot.sh (Bourne-style shell)
# or with: source PATH_TO_ROOT/bin/thisroot.csh (C-style shell)
#
# o run "make TARGET"
# - Default TARGET makes shared library (libRooUnfold.so) for use in ROOT.
# - Use "make bin" to also build example programs.
# - Use "make FILE" to compile and link user code in FILE.cxx .
# - Add NOROOFIT=1 to link without RooFit (this is default if RooFit is not available).
# - Add SHARED=1 to link test executables with shared library (libRooUnfold.so).
# Otherwise links with static library (libRooUnfold.a).
# - Add ROOTBUILD=debug for debug version.
# - Add VERBOSE=1 to show commands as they are executed.
#
# Build targets:
# help - give brief help
# shlib - make libRooUnfold.so (default target)
# include - make dependency files (*.d)
# lib - make libRooUnfold.a
# bin - make lib and example programs
# commands- show commands to make each type of target
# html - make documentation in htmldoc subdirectory
# cleanbin- delete test binaries and objects
# clean - delete all intermediate and final build objects
# FILE - if FILE.cxx (or FILE.cc or FILE.C) exists, builds executable FILE
#
# Author: Tim Adye <[email protected]>
#
#===============================================================================
# === ROOT setup ===============================================================
RC0 := root-config
ROOTSYS0 := $(shell $(RC0) --prefix 2>/dev/null)
ifeq ($(ROOTSYS0),)
ifeq ($(ROOTSYS),)
$(error $(RC0) not found and $$ROOTSYS is not defined)
endif
ETC := $(ROOTSYS)/etc $(ROOTSYS)/test
else
ETC := $(shell $(RC0) --etcdir 2>/dev/null)
ifeq ($(ETC),)
ETC := $(ROOTSYS0)/etc $(ROOTSYS0)/test
else
ETC := $(ETC) $(ROOTSYS0)/test
endif
endif
ROOT_MAKEFILE=$(firstword $(wildcard $(addsuffix /Makefile.arch,$(ETC))))
ifeq ($(ROOT_MAKEFILE),)
$(warning Could not find Makefile.arch under $(word 1,$(ETC)) or $(word 2,$(ETC)) - trying a basic Linux config)
else
-include $(ROOT_MAKEFILE)
ifeq ($(ARCH),)
$(warning $(ROOT_MAKEFILE) setup failed (no $$ARCH) - trying a basic Linux config)
endif
endif
ifeq ($(RC),)
RC := $(ROOTSYS)/bin/root-config
ifeq ($(wildcard $(RC)),)
$(error $(RC) not found)
endif
endif
ifeq ($(ARCH),)
# === This section is just in case ROOT's Makefile.arch didn't work =======
ARCH = $(shell $(RC) --arch)
ROOTLIBS = $(shell $(RC) --libs)
CXX = $(shell $(RC) --cxx)
CXXFLAGS = $(shell $(RC) --cflags)
CXXFLAGS += -Wall -fPIC
LD = $(shell $(RC) --ld)
LDFLAGS = $(shell $(RC) --ldflags)
SOFLAGS = -shared
ObjSuf = o
ExeSuf =
DllSuf = so
OutPutOpt = -o # keep whitespace after "-o"
ifneq ($(findstring debug,$(ROOTBUILD)),)
CXXFLAGS += -g
LDFLAGS += -g
else
CXXFLAGS += -O2
endif
endif
ifeq ($(PLATFORM),macosx)
# Remove stupid shared library option on MacOSX. The option doesn't work (and we don't
# need it) because our linker output file specifies the full path.
SOFLAGS := $(subst -install_name $(CURDIR)/,,$(SOFLAGS))
endif
ROOTINCDIR = $(shell $(RC) --incdir)
ROOTLIBDIR = $(shell $(RC) --libdir)
ROOTINCLUDES = -I$(ROOTINCDIR)
ifeq ($(ROOTCINT)$(ROOTCLING),)
ROOTCINT = rootcint
endif
ifeq ($(RLIBMAP),)
RLIBMAP = rlibmap
endif
ifeq ($(VERBOSE),1)
_ =
else
_ = @
endif
ifeq ($(MAKE_RESTARTS),)
$(info Use ROOT $(shell $(RC) --version) for $(ARCH) from $(shell $(RC) --prefix))
endif
# === RooUnfold directories ========================================
PACKAGE = RooUnfold
SRCDIR = $(CURDIR)/src/
INCDIR = $(SRCDIR)
WORKDIR = $(CURDIR)/tmp/$(ARCH)/
LIBDIR = $(CURDIR)/
SHLIBDIR = $(CURDIR)/
EXEDIR =
EXESRC = $(CURDIR)/examples/
HTMLDOC = htmldoc
OBJDIR = $(WORKDIR)obj/
DEPDIR = $(WORKDIR)dep/
# === RooUnfold options ===================================================
# Only provide RooUnfoldTUnfold if TUnfold is available.
# TUnfold is included in ROOT 5.22 and later.
ifeq ($(HAVE_TUNFOLD),)
ifneq ($(wildcard $(ROOTINCDIR)/TUnfold.h),)
HAVE_TUNFOLD = 1
endif
endif
# Only use TUnfoldSys if it is available (ROOT 5.23.02 and later).
ifeq ($(HAVE_TUNFOLDSYS),)
ifneq ($(wildcard $(ROOTINCDIR)/TUnfoldSys.h),)
HAVE_TUNFOLDSYS = 1
endif
endif
ifneq ($(HAVE_TUNFOLD),1)
CPPFLAGS += -DNOTUNFOLD
EXCLUDE += RooUnfoldTUnfold.cxx RooUnfoldTUnfold.h
else
ifneq ($(HAVE_TUNFOLDSYS),1)
CPPFLAGS += -DNOTUNFOLDSYS
endif
endif
# RooUnfoldDagostini is an interface to D'Agostini's implementation
# of his algorithm: http://www.roma1.infn.it/~dagos/bayes_distr.txt .
# To use this, put it in src/bayes.for and src/bayes_c.for.
ifeq ($(HAVE_DAGOSTINI),)
ifneq ($(wildcard $(SRCDIR)/bayes.for),)
HAVE_DAGOSTINI = 1
endif
endif
ifeq ($(HAVE_DAGOSTINI),1)
EXTRASRC += bayes.for
FDEP = $(SRCDIR)bayes_c.for
CPPFLAGS += -DHAVE_DAGOSTINI
else
EXCLUDE += RooUnfoldDagostini.cxx RooUnfoldDagostini.h
endif
# TSVDUnfold is included in ROOT 5.28/00 and later, but we need changes yet to be added to ROOT.
# So, use our own copy.
ifeq ($(HAVE_TSVDUNFOLD),)
###ifeq ($(wildcard $(ROOTINCDIR)/TSVDUnfold.h),)
HAVE_TSVDUNFOLD = 1
###else
###ifneq ($(shell $(RC) --version | grep '^5\.28'),)
###HAVE_TSVDUNFOLD = 1
###endif
###endif
endif
ifeq ($(HAVE_TSVDUNFOLD),1)
CPPFLAGS += -DHAVE_TSVDUNFOLD
else
EXCLUDE += TSVDUnfold.cxx TSVDUnfold_local.h
endif
# RooFit is included in ROOT if ROOT was compiled with --enable-roofit.
# We only use it for better-normalised test distributions in RooUnfoldTest
# (uses examples/RooUnfoldTestPdfRooFit.icc instead of examples/RooUnfoldTestPdf.icc).
ifeq ($(NOROOFIT),)
ifneq ($(shell $(RC) --has-roofit),yes)
$(warning This version of ROOT does not support RooFit. We will build the test programs without it.)
NOROOFIT = 1
endif
endif
ifneq ($(NOROOFIT),)
CPPFLAGS += -DNOROOFIT
else
ROOFITLIBS += -lRooFit
# Different versions of ROOT require different libraries with RooFit, so
# include all the ones that exist.
# Note that if the ROOT shared libraries were linked against them
# (configure --enable-explicitlink ?), as is done in the CERN AFS versions,
# then these are not required. But they do no harm.
ROOFITLIBS += $(patsubst $(ROOTLIBDIR)/lib%.$(DllSuf),-l%,$(wildcard $(patsubst %,$(ROOTLIBDIR)/lib%.$(DllSuf),RooFitCore Thread Minuit Foam MathMore Html)))
endif
# === Internal configuration ===================================================
MAIN = $(filter-out $(EXCLUDE),$(notdir $(wildcard $(EXESRC)*.cxx)))
MAINEXE = $(addprefix $(EXEDIR),$(patsubst %.cxx,%$(ExeSuf),$(MAIN)))
LINKDEF = $(INCDIR)$(PACKAGE)_LinkDef.h
LINKDEFMAP = $(WORKDIR)$(PACKAGE)Map_LinkDef
HLIST = $(filter-out $(addprefix $(INCDIR),$(EXCLUDE)) $(LINKDEF),$(wildcard $(INCDIR)*.h)) $(LINKDEF)
CINTFILE = $(WORKDIR)$(PACKAGE)Dict.cxx
ifneq ($(ROOTCLING),)
CLINGDICT = $(CURDIR)/$(PACKAGE)Dict_rdict.pcm
endif
CINTOBJ = $(OBJDIR)$(PACKAGE)Dict.$(ObjSuf)
LIBNAME = $(PACKAGE)
STATICLIBNAME = $(PACKAGE)_static
LIBFILE = $(LIBDIR)lib$(LIBNAME).a
STATICLIBFILE = $(LIBDIR)lib$(STATICLIBNAME).a
SHLIBFILE = $(SHLIBDIR)lib$(LIBNAME).$(DllSuf)
ROOTMAP = $(SHLIBDIR)lib$(LIBNAME).rootmap
ifeq ($(MAKECMDGOALS),)
GOALS = default
else
GOALS = $(filter-out clean cleanbin help,$(MAKECMDGOALS))
endif
CPPFLAGS += -DMAKEBUILD
ifneq ($(findstring g++,$(CXX)),)
MFLAGS = -MM
endif
INCLUDES = -I$(INCDIR) -I$(CURDIR)
CXX += $(EXTRAINCLUDES)
LDFLAGS += $(EXTRALDFLAGS)
ifneq ($(SHARED),)
LIBS = -L$(SHLIBDIR)
LINKLIB = $(SHLIBFILE)
LINKLIBOPT = -l$(LIBNAME) $(EXTRALIBS)
else
LIBS = -L$(LIBDIR)
LINKLIB = $(STATICLIBFILE)
LINKLIBOPT = -l$(STATICLIBNAME) $(EXTRALIBS)
endif
# List of all object files to build
SRCLIST = $(filter-out $(EXCLUDE),$(notdir $(wildcard $(SRCDIR)*.cxx))) $(EXTRASRC)
OLIST = $(addprefix $(OBJDIR),$(addsuffix .$(ObjSuf),$(basename $(SRCLIST))))
ifneq ($(filter %.for,$(SRCLIST)),)
GCCLIBS = -lg2c
endif
ROOTLIBFILES := $(wildcard $(patsubst -l%,$(ROOTLIBDIR)/lib%.$(DllSuf),$(filter -l%,$(ROOTLIBS))))
ifeq ($(MFLAGS),)
# Can't make dependency files, so make every compilation dependent on all headers.
HDEP = $(HLIST)
else
# List of all dependency files to make
DLIST = $(addprefix $(DEPDIR),$(patsubst %.cxx,%.d,$(filter %.cxx,$(SRCLIST) $(filter-out $(EXCLUDE),$(notdir $(wildcard $(EXESRC)*.cxx))))))
# If possible, limit ROOTLIBFILES to libraries that we actually use.
DLISTLIB = $(wildcard $(addprefix $(DEPDIR),$(patsubst %.cxx,%.d,$(filter %.cxx,$(SRCLIST)))))
ifneq ($(DLISTLIB),)
ROOTLIBMAPS := $(wildcard $(patsubst %.$(DllSuf),%.rootmap,$(ROOTLIBFILES)))
ifneq ($(ROOTLIBMAPS),)
ROOTLIBFILESUSED := $(patsubst %.rootmap,%.$(DllSuf),$(shell grep -l '^Library\.\($(shell sed -n 's,^ *$(ROOTINCDIR)[^ ]*/\([^ /]*\)\.h .*,\1\\,p' $(DLISTLIB) | sort -u | tr '\n' '|' | sed 's,\\|$$,,')\):' $(ROOTLIBMAPS)))
ifneq ($(ROOTLIBFILESUSED),)
ROOTLIBFILES := $(ROOTLIBFILESUSED)
endif
endif
endif
endif
ifeq ($(NOROOFIT),)
ifeq ($(DLIST),)
# Since we can't check the dependencies, include RooFit on all binaries
ROOFITCLIENTS = $(patsubst %.cxx,$(OBJDIR)%.$(ObjSuf),$(MAIN))
else
# List of programs that use RooFit. Should only be those in $(EXESRC)
ROOFITCLIENTS = $(patsubst $(DEPDIR)%.d,$(OBJDIR)%.$(ObjSuf),$(shell fgrep -l '/RooAbsArg.h ' $(DLIST) 2>/dev/null))
endif
endif
# === Implicit rules ===========================================================
# Remove default compile-and-link rules
%$(ExeSuf) : %.cc
%$(ExeSuf) : %.C
%$(ExeSuf) : %.$(SrcSuf)
%$(ExeSuf) : %.$(ObjSuf)
# Implicit rule making all dependency Makefiles included at the end of this makefile
$(DEPDIR)%.d : $(SRCDIR)%.cxx
@echo "Making $@"
@mkdir -p $(DEPDIR)
@rm -f $@
$(_)set -e; \
$(CXX) $(MFLAGS) $(CPPFLAGS) $(INCLUDES) $(ROOTINCLUDES) $< \
| sed 's,\($(notdir $*)\.$(ObjSuf)\) *:,$(OBJDIR)\1 $@ :,g' > $@; \
[ -s $@ ] || rm -f $@
$(DEPDIR)%.d : $(EXESRC)%.cxx
@echo "Making $@"
@mkdir -p $(DEPDIR)
@rm -f $@
$(_)set -e; \
$(CXX) $(MFLAGS) $(CPPFLAGS) $(INCLUDES) $(ROOTINCLUDES) $< \
| sed 's,\($(notdir $*)\.$(ObjSuf)\) *:,$(OBJDIR)\1 $@ :,g' > $@; \
[ -s $@ ] || rm -f $@
# Implicit rule to compile all classes
$(OBJDIR)%.$(ObjSuf) : $(SRCDIR)%.cxx $(HDEP)
@echo "Compiling $<"
@mkdir -p $(OBJDIR)
$(_)$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@ $(INCLUDES)
# Implicit rule to compile intermediate files
$(OBJDIR)%.$(ObjSuf) : $(WORKDIR)%.cxx $(HDEP)
@echo "Compiling $<"
@mkdir -p $(OBJDIR)
$(_)$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@ $(INCLUDES)
# Implicit rule for Fortran (if any)
$(OBJDIR)%.$(ObjSuf) : $(SRCDIR)%.for $(FDEP)
@echo "Compiling $<"
@mkdir -p $(OBJDIR)
$(_)$(FC) $(FFFLAGS) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@
# Implicit rule to compile main program
$(OBJDIR)%.$(ObjSuf) : $(EXESRC)%.cxx $(HLIST)
@echo "Compiling example program $<"
@mkdir -p $(OBJDIR)
$(_)$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@ $(INCLUDES)
%.$(ObjSuf) : %.$(SrcSuf) $(HLIST)
@echo "Compiling user program $<"
$(_)$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@ $(INCLUDES)
%.$(ObjSuf) : %.cc $(HLIST)
@echo "Compiling user program $<"
$(_)$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@ $(INCLUDES)
%.$(ObjSuf) : %.C $(HLIST)
@echo "Compiling user program $<"
$(_)$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@ $(INCLUDES)
# Implicit rules to link main program
$(EXEDIR)%$(ExeSuf) : $(OBJDIR)%.$(ObjSuf) $(LINKLIB)
@echo "Linking example executable $@"
$(_)$(LD) $(LDFLAGS) $< $(OutPutOpt)$@ $(LIBS) $(LINKLIBOPT) $(ROOTLIBS) $(if $(findstring $<,$(ROOFITCLIENTS)),$(ROOFITLIBS)) $(GCCLIBS)
%$(ExeSuf) : %.$(ObjSuf) $(LINKLIB)
@echo "Linking user executable $@"
$(_)$(LD) $(LDFLAGS) $< $(OutPutOpt)$@ $(LIBS) $(LINKLIBOPT) $(ROOTLIBS) $(if $(findstring $<,$(ROOFITCLIENTS)),$(ROOFITLIBS)) $(GCCLIBS)
# === Explicit rules ===========================================================
default : shlib
help :
@echo "Usage: $(MAKE) [TARGET] [ROOTBUILD=debug] [VERBOSE=1] [NOROOFIT=1] [SHARED=1]"
@echo "Some TARGETs are: 'bin', 'html', 'clean', and 'commands'"
# Rule to make ROOTCINT output file
$(CINTFILE) $(CLINGDICT) : $(HLIST)
@mkdir -p $(WORKDIR)
@mkdir -p $(OBJDIR)
@echo "Generating dictionary from $(LINKDEF)"
ifeq ($(ROOTCLING),)
$(_)$(ROOTCINT) -f $(CINTFILE) -c -p $(CPPFLAGS) $(INCLUDES) $(HLIST)
else
$(_)$(ROOTCLING) -f $(CINTFILE) $(CPPFLAGS) $(INCLUDES) $(HLIST)
$(_)mv -f $(dir $(CINTFILE))$(notdir $(CLINGDICT)) $(CLINGDICT)
endif
$(ROOTMAP) : $(SHLIBFILE) $(LINKDEF)
@echo "Making $@"
$(_)echo TObject.h TMemberInspector.h $(HLIST) | tr ' ' '\n' | sed 's/^\(.*\)$$/#include "\1"/' > $(LINKDEFMAP).cxx
$(_)$(CXX) -E -D__MAKECINT__ -D__CINT__ -o $(LINKDEFMAP).h $(CPPFLAGS) $(INCLUDES) $(ROOTINCLUDES) $(LINKDEFMAP).cxx
$(_)$(RLIBMAP) -o $@ -l $< -d $(ROOTLIBFILES) -c $(LINKDEFMAP).h
# Rule to combine objects into a library
$(LIBFILE) : $(OLIST) $(CINTOBJ)
@echo "Making $@"
@mkdir -p $(LIBDIR)
@rm -f $@
$(_)ar q $@ $^
@ranlib $@
# Make symlink to static library so we can refer to that without picking up shared library.
# Assumes $(LIBFILE) and $(STATICLIBFILE) are in the same directory
$(STATICLIBFILE) : $(LIBFILE)
@rm -f $@
$(_)ln -s $(patsubst $(dir $@)%,%,$<) $@
# Rule to combine objects into a shared library
$(SHLIBFILE) : $(OLIST) $(CINTOBJ)
@echo "Making $@"
@mkdir -p $(SHLIBDIR)
@rm -f $@
$(_)$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt)$@ $(ROOTLIBS) $(GCCLIBS)
# Useful build targets
include: $(DLIST)
lib: $(LIBFILE)
shlib: $(SHLIBFILE) $(ROOTMAP) $(CLINGDICT)
bin: shlib $(MAINEXE)
commands :
@echo "Make $(DEPDIR)%.d: $(CXX) $(MFLAGS) $(CPPFLAGS) $(INCLUDES) $(ROOTINCLUDES) $(SRCDIR)%.cxx | sed 's,\(%\.$(ObjSuf)\) *:,$(OBJDIR)\1 $(DEPDIR)%.d :,g' > $(DEPDIR)%.d"
@echo
ifeq ($(ROOTCLING),)
@echo "Make dictionary: $(ROOTCINT) -f $(CINTFILE) -c -p $(CPPFLAGS) $(INCLUDES) $(HLIST)"
else
@echo "Make dictionary: $(ROOTCLING) -f $(CINTFILE) $(CPPFLAGS) $(INCLUDES) $(HLIST)"
endif
@echo
@echo "Compile $(SRCDIR)%.cxx: $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(SRCDIR)%.cxx -o $(OBJDIR)%.$(ObjSuf) $(INCLUDES)"
@echo
@echo "Make $(SHLIBFILE): $(LD) $(SOFLAGS) $(LDFLAGS) *.$(ObjSuf) $(OutPutOpt)$(SHLIBFILE) $(ROOTLIBS) $(GCCLIBS)"
@echo
@echo "Make executable $(EXEDIR)RooUnfoldTest$(ExeSuf): $(LD) $(LDFLAGS) $(OBJDIR)RooUnfoldTest.$(ObjSuf) $(OutPutOpt)$(EXEDIR)RooUnfoldTest$(ExeSuf) $(LIBS) $(LINKLIBOPT) $(ROOTLIBS) $(ROOFITLIBS) $(GCCLIBS)"
clean : cleanbin
rm -f $(DLIST)
rm -f $(CINTFILE) $(basename $(CINTFILE)).h $(CLINGDICT)
rm -f $(OLIST) $(CINTOBJ)
rm -f $(LIBFILE)
rm -f $(SHLIBFILE) $(ROOTMAP) $(LINKDEFMAP).cxx $(LINKDEFMAP).h
rm -f $(STATICLIBFILE)
cleanbin :
rm -f $(addprefix $(OBJDIR),$(patsubst %.cxx,%.$(ObjSuf),$(MAIN)))
rm -f $(MAINEXE)
$(HTMLDOC)/index.html : $(SHLIBFILE)
@echo "Making HTML documentation in $(HTMLDOC)"
@( echo 'gSystem->Load("lib$(LIBNAME)");'; \
echo 'THtml h;'; \
echo 'h.SetProductName("$(PACKAGE)");'; \
echo 'h.SetInputDir("$(SRCDIR)");'; \
echo 'h.SetOutputDir("$(HTMLDOC)");'; \
echo 'h.MakeAll();'; \
echo '.q' ) \
| root -l -b
html : $(HTMLDOC)/index.html
.PHONY : include shlib lib bin default clean cleanbin html help
ifneq ($(GOALS),)
ifneq ($(DLIST),)
-include $(DLIST)
endif
endif