summaryrefslogtreecommitdiffstats
path: root/make.include
blob: b05a52e2ad429cd9179aaef4ed8fb0dcd569a5a1 (plain)
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
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
# tcl 8.6.8
# tk 8.6.8
# tclfitsy 1.0
# tcliis 1.0
# tcllib 1.19
# tclsignal 1.4
# tclxml 3.2
# tclzipfs 1.0
# tls 1.6.7
# tkblt 3.2
# tkcon 2.7
# tkhtml1 1.0
# tkimg 1.4.9
# tkmpeg 1.0
# tkagif 1.0
# tktable 2.10

# ast 8.7.1
# funtools 1.4.7
# zlib 1.2.8
# xpa 2.1.18+
# libxml2 2.9.4
# libxslt 1.1.29
# openssl 1.0.2k

DS9_VERSION	= 8.2b2
XPA_VERSION	= 2.1.18
TCL_VERSION	= 8.6

Tidy = \
	cd $(1); \
	for ff in *.html; \
	do echo ""; echo $$ff; \
	tidy -q -m -w 0 $$ff; \
	done;

TidyFile = \
	cd $(1); \
	echo ""; echo $(2); \
	tidy -q -m -w 0 $(2);

#-------------------------- Defs

DIRS   = $(bindir) $(libdir) $(includedir) $(datadir) man build dist
PREFIX = --prefix $(prefix) --exec-prefix $(exec_prefix) --libdir $(libdir)
STD    = --disable-shared --disable-stubs --enable-symbols

#-------------------------- tkimg tmp files

TKIMGTMPFILES = \
	      tkimg/libjpeg/libjpeg \
	      tkimg/libtiff/build \
	      tkimg/libtiff/contrib \
	      tkimg/libtiff/html \
	      tkimg/libtiff/libtiff \
	      tkimg/libtiff/libtool \
	      tkimg/libtiff/man \
	      tkimg/libtiff/mkg3states \
	      tkimg/libtiff/mkg3states.dSYM \
	      tkimg/libtiff/port \
	      tkimg/libtiff/test \
	      tkimg/libtiff/tif_fax3sm.c \
	      tkimg/libtiff/tools

#-------------------------- main

.NOTPARALLEL :
.PHONY	: all dirs ds9 tclfitsy tcliis tclxml tclzipfs tls xpa
.PHONY	: tkblt tkcon tkhtml1 tkimg tkmpeg tkagif tksao tktable
.PHONY	: vector ast funtools openssl

all	: saods9

dirs	:
	@echo ""
	@echo "*** Cores $(JOBS) ***"
	@echo ""
	@echo "*** Install $@ ***"
	@for d in $(DIRS); do if [ ! -d $$d ]; then mkdir $$d; fi done

#-------------------------- ds9

ds9	: ds9/$(OS)/Makefile
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C ds9/$(OS) -j $(JOBS)

debug	: ds9/$(OS)/Makefile
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C ds9/$(OS)  -j $(JOBS) debug

ds9/$(OS)/Makefile :
	@echo ""
	@echo "*** $@ ***"
	cd ds9/$(OS); \
	./configure \
	$(WITHTK) \
	$(PREFIX) \
	$(STD) \
	$(CACHE)

#--------------------------openssl

openssl	: openssl/Makefile
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C openssl -j $(JOBS)

openssl/Makefile:
	@echo ""
	@echo "*** $@ ***"
	cd openssl; \
	$(SSLCONFIG) --prefix=$(prefix)

#-------------------------- tclfitsy

tclfitsy: tclfitsy/Makefile
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tclfitsy -j $(JOBS) install

tclfitsy/Makefile :
	@echo ""
	@echo "*** $@ ***"
	cd tclfitsy; \
	./configure \
	$(WITHTCL) \
	$(PREFIX) \
	$(STD) \
	$(CACHE)

#-------------------------- tcliis

tcliis	: tcliis/Makefile
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tcliis -j $(JOBS) install

tcliis/Makefile :
	@echo ""
	@echo "*** $@ ***"
	cd tcliis; \
	./configure \
	$(WITHTCL) \
	$(PREFIX) \
	$(STD) \
	$(CACHE)

#-------------------------- tclxml

# no parallel
tclxml	: tclxml/Makefile
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tclxml install

tclxml/Makefile :
	@echo ""
	@echo "*** $@ ***"
	cd tclxml; \
	./configure \
	$(WITHTCL) \
	$(TCLXMLFLAGS) \
	$(PREFIX) \
	$(STD) \
	$(CACHE)

#-------------------------- tls

# no cache (win)
tls	: tls/Makefile
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tls install

tls/Makefile :
	@echo ""
	@echo "*** $@ ***"
	cd tls; \
	./configure \
 	--with-ssl-dir=$(prefix)/openssl \
	 $(TLSFLAGS) \
	$(WITHTCL) \
	$(PREFIX) \
	$(STD)

#-------------------------- xpa

# no config.cache
xpa	: xpa/Makefile
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C xpa -j $(JOBS) install

xpa/Makefile :
	@echo ""
	@echo "*** $@ ***"
	cd xpa; \
	./configure \
	$(CONFIGFLAGS) $(TARGET) $(XPAFLAGS) \
	$(WITHTCL) \
	$(PREFIX) \
	$(STD) \
	--with-x=disabled

#-------------------------- tkblt

tkblt	: tkblt/Makefile
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tkblt -j $(JOBS) install

tkblt/Makefile :
	@echo ""
	@echo "*** $@ ***"
	cd tkblt; \
	./configure \
	$(WITHTK) \
	$(PREFIX) \
	$(STD) \
	$(CACHE)

#-------------------------- tkcon

tkcon	: tkcon/Makefile
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tkcon -j $(JOBS) install

tkcon/Makefile :
	@echo ""
	@echo "*** $@ ***"
	cd tkcon; \
	./configure \
	$(WITHTK) \
	$(PREFIX) \
	$(CACHE)

#-------------------------- tkhtml1

# no parallel
# make sure htmltokens.c does not get regenerated (windows)
tkhtml1	: tkhtml1/Makefile
	@echo ""
	@echo "*** $@ ***"
	touch tkhtml1/generic/htmltokens.c
	$(MAKE) -C tkhtml1 install

tkhtml1/Makefile :
	@echo ""
	@echo "*** $@ ***"
	cd tkhtml1; \
	./configure \
	$(WITHTK) \
	$(PREFIX) \
	$(STD) \
	$(CACHE)

#-------------------------- tkimg

tkimg	: tkimg/Makefile
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tkimg -j $(JOBS) all
	$(MAKE) -C tkimg/base -j $(JOBS) install
	$(MAKE) -C tkimg/tiff -j $(JOBS) install
	$(MAKE) -C tkimg/libtiff -j $(JOBS) install
	$(MAKE) -C tkimg/jpeg -j $(JOBS) install
	$(MAKE) -C tkimg/libjpeg -j $(JOBS) install
	$(MAKE) -C tkimg/window -j $(JOBS) install
	$(MAKE) -C tkimg/zlib -j $(JOBS) install

# no config.cache
tkimg/Makefile :
	@echo ""
	@echo "*** $@ ***"
	cd tkimg; \
	./configure \
	$(WITHTK) \
	$(PREFIX) \
	$(STD)

#-------------------------- tkmpeg

tkmpeg	: tkmpeg/Makefile
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tkmpeg -j $(JOBS) install

tkmpeg/Makefile :
	@echo ""
	@echo "*** $@ ***"
	cd tkmpeg; \
	./configure \
	$(WITHTK) \
	$(PREFIX) \
	$(STD) \
	$(CACHE)

#-------------------------- tkagif

tkagif	: tkagif/Makefile
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tkagif -j $(JOBS) install

tkagif/Makefile :
	@echo ""
	@echo "*** $@ ***"
	cd tkagif; \
	./configure \
	$(WITHTK) \
	$(PREFIX) \
	$(STD) \
	$(CACHE)

#-------------------------- tksao

tksao	: ast funtools tksao/Makefile
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tksao -j $(JOBS) install

tksao/Makefile :
	@echo ""
	@echo "*** $@ ***"
	cd tksao; \
	./configure \
	$(WITHTK) \
	$(PREFIX) \
	$(STD) \
	$(CACHE)

#-------------------------- vector

vector	: vector/Makefile
	@echo ""
	@echo "*** $@ ***"
	$ CXX=$(CXX) AR=$(AR) $(MAKE) -C vector -j $(JOBS) install libdir=$(libdir) includedir=$(includedir)

#-------------------------- ast

ast	: ast/Makefile ast/ast.h ast/.libs/libast.a ast/.libs/libast_err.a ast/.libs/libast_pal.a

ast/Makefile :
	@echo ""
	@echo "*** $@ ***"
	cd ast; \
	./configure \
	$(ASTFLAGS) \
	--without-pthreads --enable-shared=no \
	star_cv_cnf_trail_type=long star_cv_cnf_f2c_compatible=no \
	$(CONFIGFLAGS) \
	$(PREFIX)
	cd ast; touch configure.ac aclocal.m4 configure Makefile.am Makefile.in

ast/ast.h :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C ast -j ast.h
	$(MAKE) -C ast -j $(JOBS) libast.la
	$(MAKE) -C ast -j $(JOBS) libast_err.la
	$(MAKE) -C ast -j $(JOBS) libast_pal.la
	cp ast/ast.h $(includedir)/.
	cp ast/grf.h $(includedir)/.
	cp ast/grf3d.h $(includedir)/.
	cp ast/.libs/libast.a $(libdir)/.
	cp ast/.libs/libast_err.a $(libdir)/.
	cp ast/.libs/libast_pal.a $(libdir)/.

ast/.libs/libast.a :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C ast -j ast.h
	cp ast/ast.h $(includedir)/.
	cp ast/grf.h $(includedir)/.
	cp ast/grf3d.h $(includedir)/.

ast/.libs/libast_err.a :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C ast -j $(JOBS) libast_err.la
	cp ast/.libs/libast_err.a $(libdir)/.

ast/.libs/libast_pal.a :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C ast -j $(JOBS) libast_pal.la
	cp ast/.libs/libast_pal.a $(libdir)/.

#-------------------------- funtools

funtools : funtools/libfuntools.a

# no parallel
funtools/libfuntools.a : funtools/Makefile
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C funtools lib
	cp funtools/funtools.h $(includedir)/.
	cp funtools/filter/*.h $(includedir)/.
	cp funtools/util/*.h $(includedir)/.
	cp funtools/fitsy/*.h $(includedir)/.
	cp funtools/libfuntools.a $(libdir)/.

funtools/Makefile : funtools/configure
	@echo ""
	@echo "*** $@ ***"
	cd funtools; \
	./configure \
	--with-zlib=$(libdir) \
	$(CONFIGFLAGS) $(TARGET) \
	$(PREFIX) \
	--disable-shared

funtools/configure :
	cd funtools; \
	./mkconfigure

#-------------------------- tktable

# no parallel
tktable	: tktable/Makefile
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tktable install

tktable/Makefile :
	@echo ""
	@echo "*** $@ ***"
	cd tktable; \
	./configure \
	$(WITHTK) \
	$(PREFIX) \
	$(STD) \
	$(CACHE)

#-------------------------- language

.PHONY	: language

language:
	cd ds9; \
	grep 'msgcat::mc' library/*.tcl | tclsh8.6 util/mergedict.tcl da iso8859-1; \
	grep 'msgcat::mc' library/*.tcl | tclsh8.6 util/mergedict.tcl de iso8859-1; \
	grep 'msgcat::mc' library/*.tcl | tclsh8.6 util/mergedict.tcl es iso8859-1; \
	grep 'msgcat::mc' library/*.tcl | tclsh8.6 util/mergedict.tcl fr iso8859-1; \
	grep 'msgcat::mc' library/*.tcl | tclsh8.6 util/mergedict.tcl pt iso8859-1; \
	grep 'msgcat::mc' library/*.tcl | tclsh8.6 util/mergedict.tcl cs iso8859-2; \
	grep 'msgcat::mc' library/*.tcl | tclsh8.6 util/mergedict.tcl ja euc-jp; \
	grep 'msgcat::mc' library/*.tcl | tclsh8.6 util/mergedict.tcl zh big5

#-------------------------- tidy

.PHONY	: tidy

tidy	:
	$(call Tidy,ds9/doc)
	$(call Tidy,ds9/doc/release)
	$(call Tidy,ds9/doc/ref)

#-------------------------- scrub

.PHONY	: scrub

scrub :
	find . -name "*[~#]" -exec rm {} \;
	find . -d -name "autom4te.cache" -exec rm -rf {} \;

#-------------------------- clean

.PHONY	: clean
.PHONY	: dirsclean ds9clean ds9parsersclean localclean
.PHONY	: opensslclean tclfitsy tcliisclean 
.PHONY	: tclxmlclean tlsclean
.PHONY	: tkbltclean tkconclean tkhtml1clean tkimgclean
.PHONY	: tkmpegclean tkagifclean
.PHONY	: tksaoclean vectorclean astclean funtoolsclean tktableclean xpaclean

clean	: tclclean tkclean \
	opensslclean \
	tclfitsy tcliisclean \
	tlsclean tclxmlclean xpaclean \
	tkbltclean tkconclean tktableclean tkimgclean \
	tkmpegclean tkagifclean tkhtml1clean \
	tksaoclean vectorclean astclean funtoolsclean ds9clean \
	osclean dirsclean localclean scrub

dirsclean :
	@echo ""
	@echo "*** $@ ***"
	for d in $(DIRS); do rm -rf $$d; done

ds9clean :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C ds9/$(OS) clean

ds9parsersclean :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C ds9/$(OS) parsersclean

localclean :
	@echo ""
	@echo "*** $@ ***"
	-rm -f core *~ *#

opensslclean:
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C openssl clean

tclfitsyclean :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tclfitsy clean

tcliisclean :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tcliis clean

tclxmlclean:
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tclxml clean

tlsclean:
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tls clean

tkbltclean:
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tkblt clean

tkconclean:
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tkcon clean

tkhtml1clean:
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tkhtml1 clean

tkimgclean:
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tkimg clean

tkmpegclean:
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tkmpeg clean

tkagifclean:
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tkagif clean

tksaoclean :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tksao clean

vectorclean :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C vector clean

astclean :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C ast clean

funtoolsclean :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C funtools clean

tktableclean:
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tktable clean

xpaclean :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C xpa clean

#-------------------------- distclean

.PHONY	: dirsdistclean ds9distclean localdistclean
.PHONY	: openssldistclean tclfitsydistclean tcliisdistclean 
.PHONY	: tclxmldistclean tlsdistclean
.PHONY	: tkbltdistclean tkcondistclean tkhtml1distclean 
.PHONY	: tkimgdistclean tkmpegdistclean tkagifdistclean 
.PHONY	: tksaodistclean vectordistclean astdistclean funtoolsdistclean
.PHONY	: tktabledistclean xpadistclean

distclean : tcldistclean tkdistclean \
	  openssldistclean tclfitsydistclean tcliisdistclean \
	  tclsignaldistclean \
	  tlsdistclean tclxmldistclean xpadistclean \
	  tkbltdistclean tktabledistclean tkcondistclean tkimgdistclean \
	  tkmpegdistclean tkagifdistclean tkhtml1distclean \
	  tksaodistclean vectordistclean astdistclean \
	  funtoolsdistclean ds9distclean \
	  osdistclean dirsdistclean localdistclean scrub

dirsdistclean:
	@echo ""
	@echo "*** $@ ***"
	for d in $(DIRS); do rm -rf $$d; done

ds9distclean :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C ds9/$(OS) distclean

localdistclean :
	@echo ""
	@echo "*** $@ ***"
	-rm -f core *~ *#
	-rm -f config.log config.status config.cache Makefile 

openssldistclean :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C openssl clean
	rm -f openssl/Makefile
	rm -rf openssl/include
	rm -f openssl/crypto/opensslconf.h
	rm -f openssl/apps/CA.pl
	rm -f openssl/tools/c_rehash
	find openssl/test -type l -exec rm {} \;
	find openssl/apps -type l -exec rm {} \;
	find openssl/certs/demo -type l -exec rm {} \;

tclfitsydistclean :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tclfitsy distclean
	rm -f tclfitsy/tclfitsyConfig.sh

tcliisdistclean :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tcliis distclean
	rm -f tcliis/tcliisConfig.sh

tclxmldistclean:
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tclxml distclean
	rm -f tclxml/tclxmlConfig.sh

tlsdistclean:
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tls distclean
	rm -f tls/tlsConfig.sh

tkcondistclean:
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tkcon distclean

tkbltdistclean:
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tkblt distclean
	rm -f tkblt/tkbltConfig.sh

tkhtml1distclean:
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tkhtml1 distclean
	rm -f tkhtml1/tkhtml1Config.sh

tkimgdistclean: 
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tkimg distclean
	find tkimg -name "pkgIndex.tcl" -exec rm {} \;		
	find tkimg -name "*Config.sh" -exec rm {} \;		
	rm -rf $(TKIMGTMPFILES)

tkmpegdistclean:
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tkmpeg distclean
	rm -f tkmpeg/tkmpegConfig.sh

tkagifdistclean:
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tkagif distclean
	rm -f tkagif/tkagifConfig.sh

tksaodistclean :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tksao distclean
	rm -f tksao/tksaoConfig.sh

astdistclean :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C ast distclean

vectordistclean :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C vector distclean

funtoolsdistclean :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C funtools distclean

tktabledistclean:
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C tktable distclean
	rm -f tktable/tktableConfig.sh

xpadistclean :
	@echo ""
	@echo "*** $@ ***"
	$(MAKE) -C xpa distclean