source: branches/r9/Makefile.in @ 4910

Last change on this file since 4910 was 4910, checked in by gah, 7 years ago
File size: 32.9 KB
Line 
1
2# ------------------------------------------------------------------------
3#       Makefile for Rappture
4# ------------------------------------------------------------------------
5
6# ------------------------------------------------------------------------
7#       C Compiler options
8# ------------------------------------------------------------------------
9
10RAPPTURE_MAJOR_VERSION =        @RAPPTURE_MAJOR_VERSION@
11RAPPTURE_MINOR_VERSION =        @RAPPTURE_MINOR_VERSION@
12RAPPTURE_RELEASE_SERIAL =       @RAPPTURE_RELEASE_SERIAL@
13X_INCLUDES =            @X_INCLUDES@
14X_LIBRARIES =           @X_LIBRARIES@
15WORDSIZE =              @WORDSIZE@
16version = $(RAPPTURE_MAJOR_VERSION).$(RAPPTURE_MINOR_VERSION).$(RAPPTURE_RELEASE_SERIAL)
17runtime =               $(shell cd ../rappture/runtime; pwd)
18TAG =                   branches/blt4
19
20# ------------------------------------------------------------------------
21#       Source and targer installation directories
22# ------------------------------------------------------------------------
23
24bindir =                $(exec_prefix)/bin
25datadir =               @datadir@
26datarootdir =           @datarootdir@
27exec_prefix =           @exec_prefix@
28incdir =                $(prefix)/include
29includedir =            @includedir@
30libdir =                @libdir@
31prefix =                @prefix@
32scriptdir =             $(exec_prefix)/scripts
33pkgdir =                $(exec_prefix)/lib
34srcdir =                $(shell cd @srcdir@; pwd)
35statsdir =              @STATSDIR@
36
37# ------------------------------------------------------------------------
38#       You don't need to edit anything beyond this point
39# ------------------------------------------------------------------------
40
41INSTALL =               @INSTALL@
42INSTALL_DATA =          @INSTALL_DATA@
43DESTDIR = 
44RANLIB =                @RANLIB@
45MAKE =                  make
46SHELL =                 /bin/sh
47AR =                    ar rc
48RM =                    rm -f
49LN_S =                  @LN_S@
50VPATH =                 $(srcdir)
51MKDIR_P =               @MKDIR_P@
52CP =                    /bin/cp
53
54WITH_R =                @WITH_R@
55WITH_JAVA =             @WITH_JAVA@
56WITH_MATLAB =           @WITH_MATLAB@
57WITH_MKOCTFILE2 =       @WITH_MKOCTFILE2@
58WITH_MKOCTFILE3 =       @WITH_MKOCTFILE3@
59WITH_OCTAVE =           @WITH_OCTAVE@
60WITH_PERL =             @WITH_PERL@
61WITH_PYTHON =           @WITH_PYTHON@
62WITH_RUBY =             @WITH_RUBY@
63WITH_RUBY_SITELIBDIR =  @WITH_RUBY_SITELIBDIR@
64WITH_TCL =              @WITH_TCL@
65WITH_VTK =              @WITH_VTK@
66
67common_flags =          --prefix=$(prefix) --exec_prefix=$(exec_prefix)
68x_flags =
69ifneq ("$(X_INCLUDES)", )
70  x_flags += --x-includes=$(X_INCLUDES)
71endif
72ifneq ("$(X_LIBRARIES)", )
73  x_flags += --x-includes=$(X_LIBRARIES)
74endif
75
76PATH := $(bindir):$(PATH)
77
78targets = \
79        apps blt cmake examples expat expect gui htmlwidget itcl \
80        itk lang lib optimizer shape sqlitetcl tcl tcllib \
81        tdom tk tkimg tls video vtk zlib  packages \
82
83.PHONY: $(targets)
84
85.NOTPARALLEL:
86
87all: gui lang apps allpackages
88
89allpackages: packages video optimizer
90
91update:
92        for i in $(srcdir)/runtime/*; do \
93           (cd $$i; svn update; svn status) \
94        done
95
96# Aliases for package directory names.
97
98blt = blt4
99cmake = cmake-2.8.12.2
100examples = examples
101expat = expat-2.1.0
102expect = expect5.45
103freetype = freetype-2.5.3
104gui = gui
105htmlwidget = htmlwidget-3a14
106itcl = itcl3.4
107itk = itk3.3
108jpeg = jpeg-8d
109libpng = libpng-1.6.15
110lib = lib
111openssl = openssl-1.0.1j
112optimizer = optimizer
113shape = shape0.4
114sqlitetcl = sqlite-src-3080703
115sqlitetcl = sqlite-3071502
116tcl = tcl8.5.10
117tcllib = tcllib-1.15
118tdom = tDOM-0.8.3
119tiff = tiff-4.0.3
120tk = tk8.5.10
121tkimg = tkimg1.4
122tls = tls1.6
123VTK_VERSION =           6.0
124vtk = vtk-6.0.0
125zlib = zlib
126lang = lang
127video = video
128packages = pkgs
129apps = apps
130
131subdirs = \
132        $(blt) $(cmake) $(expat) $(expect) \
133        $(gui) $(htmlwidget) $(itcl) $(itk) $(lang) $(lib)  \
134        $(optimizer) $(shape) \
135        $(sqlitetcl) $(tcl) $(tcllib) $(tdom) $(tk) $(tkimg) \
136        $(tls) $(vtk) $(zlib) $(apps)
137
138ifneq ("$(WITH_VTK)", "no")
139  vtk_timestamp = $(vtk)/timestamp
140endif
141
142clean:
143        $(clean_apps)
144        $(clean_blt)
145        $(clean_cmake)
146        $(clean_expat)
147        $(clean_expect)
148        $(clean_gui)
149        $(clean_htmlwidget)
150        $(clean_itcl)
151        $(clean_itk)
152        $(clean_lang)
153        $(clean_lib)
154        $(clean_optimizer)
155        $(clean_shape)
156        $(clean_sqlitetcl)
157        $(clean_tcl)
158        $(clean_tcllib)
159        $(clean_tdom)
160        $(clean_tk)
161        $(clean_tkimg)
162        $(clean_tls)
163        $(clean_vtk)
164        $(clean_zlib)
165
166# -------------------------------------------------------------------------
167#  APPS
168# -------------------------------------------------------------------------
169
170apps_flags =    \
171        --enable-shared \
172        $(common_flags)
173
174apps: $(apps)/timestamp
175
176clean-apps:
177        $(clean_apps)
178fetch-apps:
179        $(fetch_apps)
180configure-apps:
181        $(configure_apps)
182build-apps:
183        $(build_apps)
184install-apps:
185        $(install_apps)
186touch-apps:
187        $(touch_apps)
188force-apps: $(gui)/timestamp
189        + $(clean_apps)
190        + $(fetch_apps)
191        + $(configure_apps)
192        + $(build_apps)
193        + $(install_apps)
194        + $(touch_apps)
195
196define clean_apps
197        $(MAKE) -C $(apps) clean
198endef
199define fetch_apps
200endef
201define configure_apps
202endef
203define build_apps
204        $(MAKE) -C $(apps) all
205endef
206define install_apps
207        $(MAKE) -C $(apps) install
208endef
209define touch_apps
210        touch $(apps)/timestamp
211endef
212
213$(apps)/timestamp: $(gui)/timestamp
214        + $(clean_apps)
215        + $(fetch_apps)
216        + $(configure_apps)
217        + $(build_apps)
218        + $(install_apps)
219        + $(touch_apps)
220
221
222# -------------------------------------------------------------------------
223#  BLT
224# -------------------------------------------------------------------------
225
226blt_flags =     \
227                --enable-shared \
228                $(common_flags)
229
230blt: $(blt)/timestamp
231
232clean-blt:
233        $(clean_blt)
234fetch-blt:
235        $(fetch_blt)
236configure-blt:
237        $(configure_blt)
238build-blt:
239        $(build_blt)
240install-blt:
241        $(install_blt)
242touch-blt:
243        $(touch_blt)
244force-blt: $(tcl)/timestamp $(tk)/timestamp
245        + $(clean_blt)
246        + $(fetch_blt)
247        + $(configure_blt)
248        + $(build_blt)
249        + $(install_blt)
250        + $(touch_blt)
251
252define clean_blt
253        $(RM) -r $(blt)
254endef
255define fetch_blt
256        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(blt)
257endef
258define configure_blt
259        $(MKDIR_P) $(blt)
260        cd $(blt); $(runtime)/$(blt)/configure $(blt_flags)
261endef
262define build_blt
263        $(MAKE)  -C $(blt) all
264endef
265define install_blt
266        $(MAKE) -C $(blt) install
267endef
268define touch_blt
269        touch $(blt)/timestamp
270endef
271
272$(blt)/timestamp: $(tcl)/timestamp $(tk)/timestamp
273        + $(clean_blt)
274        + $(fetch_blt)
275        + $(configure_blt)
276        + $(build_blt)
277        + $(install_blt)
278        + $(touch_blt)
279
280# -------------------------------------------------------------------------
281#  CMAKE
282# -------------------------------------------------------------------------
283
284cmake_flags =   \
285        --prefix=$(prefix)
286
287cmake: $(cmake)/timestamp
288
289clean-cmake:
290        $(clean_cmake)
291fetch-cmake:
292        $(fetch_cmake)
293configure-cmake:
294        $(configure_cmake)
295build-cmake:
296        $(build_cmake)
297install-cmake:
298        $(install_cmake)
299touch-cmake:
300        $(touch_cmake)
301force-cmake:
302        + $(clean_cmake)
303        + $(fetch_cmake)
304        + $(configure_cmake)
305        + $(build_cmake)
306        + $(install_cmake)
307        + $(touch_cmake)
308
309define clean_cmake
310        $(RM) -r $(cmake)
311endef
312define fetch_cmake
313        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(cmake)
314endef
315define configure_cmake
316        $(MKDIR_P) $(cmake)
317        cd $(cmake); $(runtime)/$(cmake)/configure $(cmake_flags)
318endef
319define build_cmake
320        $(MAKE)  -C $(cmake) all
321endef
322define install_cmake
323        $(MAKE) -C $(cmake) install
324endef
325define touch_cmake
326        touch $(cmake)/timestamp
327endef
328
329$(cmake)/timestamp:
330        + $(clean_cmake)
331        + $(fetch_cmake)
332        + $(configure_cmake)
333        + $(build_cmake)
334        + $(install_cmake)
335        + $(touch_cmake)
336
337# -------------------------------------------------------------------------
338#  EXAMPLES
339# -------------------------------------------------------------------------
340
341examples_flags =        \
342        --with-tclsh="$(bindir)/tclsh" \
343        --enable-shared \
344        $(common_flags)
345
346examples: $(examples)/timestamp
347
348clean-examples:
349        $(clean_examples)
350fetch-examples:
351        $(fetch_examples)
352configure-examples:
353        $(configure_examples)
354build-examples:
355        $(build_examples)
356install-examples:
357        $(install_examples)
358touch-examples:
359        $(touch_examples)
360force-examples: $(gui)/timestamp
361        + $(clean_examples)
362        + $(fetch_examples)
363        + $(configure_examples)
364        + $(build_examples)
365        + $(install_examples)
366        + $(touch_examples)
367
368define clean_examples
369        $(MAKE) -C $(examples) clean
370endef
371define fetch_examples
372endef
373define configure_examples
374        $(MKDIR_P) $(examples)
375endef
376define build_examples
377        $(MAKE) -C $(examples) all
378endef
379define install_examples
380        $(MAKE) -C $(examples) install
381endef
382define touch_examples
383        touch $(examples)/timestamp
384endef
385
386$(examples)/timestamp: $(gui)/timestamp
387        + $(clean_examples)
388        + $(fetch_examples)
389        + $(configure_examples)
390        + $(build_examples)
391        + $(install_examples)
392        + $(touch_examples)
393
394# -------------------------------------------------------------------------
395#  EXPAT
396# -------------------------------------------------------------------------
397
398expat_flags =   \
399        --enable-shared \
400        $(common_flags)
401
402expat: $(expat)/timestamp
403
404clean-expat:
405        $(clean_expat)
406fetch-expat:
407        $(fetch_expat)
408configure-expat:
409        $(configure_expat)
410build-expat:
411        $(build_expat)
412install-expat:
413        $(install_expat)
414touch-expat:
415        $(touch_expat)
416force-expat:
417        + $(clean_expat)
418        + $(fetch_expat)
419        + $(configure_expat)
420        + $(build_expat)
421        + $(install_expat)
422        + $(touch_expat)
423
424define clean_expat
425        $(RM) -r $(expat)
426endef
427define fetch_expat
428        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(expat)
429endef
430define configure_expat
431        $(MKDIR_P) $(expat)
432        cd $(expat); $(runtime)/$(expat)/configure $(expat_flags)
433endef
434define build_expat
435        $(MAKE)  -C $(expat) all
436endef
437define install_expat
438        $(MAKE) -C $(expat) install
439endef
440define touch_expat
441        touch $(expat)/timestamp
442endef
443
444$(expat)/timestamp:
445        + $(clean_expat)
446        + $(fetch_expat)
447        + $(configure_expat)
448        + $(build_expat)
449        + $(install_expat)
450        + $(touch_expat)
451
452# -------------------------------------------------------------------------
453#  EXPECT
454# -------------------------------------------------------------------------
455
456expect_flags =  \
457        --enable-shared \
458        --enable-64bit \
459        --with-tcl=$(libdir) \
460        --with-tclinclude=$(incdir) \
461        $(common_flags)
462
463expect: $(expect)/timestamp
464
465clean-expect:
466        $(clean_expect)
467fetch-expect:
468        $(fetch_expect)
469configure-expect:
470        $(configure_expect)
471build-expect:
472        $(build_expect)
473install-expect:
474        $(install_expect)
475touch-expect:
476        $(touch_expect)
477force-expect: $(tcl)/timestamp $(tk)/timestamp
478        + $(clean_expect)
479        + $(fetch_expect)
480        + $(configure_expect)
481        + $(build_expect)
482        + $(install_expect)
483        + $(touch_expect)
484
485define clean_expect
486        $(RM) -r $(expect)
487endef
488define fetch_expect
489        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(expect)
490endef
491define configure_expect
492        $(MKDIR_P) $(expect)
493        cd $(expect); $(runtime)/$(expect)/configure $(expect_flags)
494endef
495define build_expect
496        $(MAKE)  -C $(expect) all
497endef
498define install_expect
499        $(MAKE) -C $(expect) install
500endef
501define touch_expect
502        touch $(expect)/timestamp
503endef
504
505$(expect)/timestamp: $(tcl)/timestamp $(tk)/timestamp
506        + $(clean_expect)
507        + $(fetch_expect)
508        + $(configure_expect)
509        + $(build_expect)
510        + $(install_expect)
511        + $(touch_expect)
512
513# -------------------------------------------------------------------------
514#  GUI
515# -------------------------------------------------------------------------
516
517gui_flags =     \
518        $(common_flags)
519
520gui: $(gui)/timestamp
521
522clean-gui:
523        $(clean_gui)
524fetch-gui:
525        $(fetch_gui)
526configure-gui:
527        $(configure_gui)
528build-gui:
529        $(build_gui)
530install-gui:
531        $(install_gui)
532touch-gui:
533        $(touch_gui)
534force-gui: $(lib)/timestamp \
535                  $(blt)/timestamp \
536                  $(itk)/timestamp \
537                  $(htmlwidget)/timestamp \
538                  $(shape)/timestamp \
539                  $(sqlitetcl)/timestamp \
540                  $(vtk_timestamp)
541        + $(clean_gui)
542        + $(fetch_gui)
543        + $(configure_gui)
544        + $(build_gui)
545        + $(install_gui)
546        + $(touch_gui)
547
548define clean_gui
549        $(RM) -r $(gui)
550endef
551define fetch_gui
552endef
553define configure_gui
554        $(MKDIR_P) $(gui)
555        cd $(gui); $(srcdir)/$(gui)/configure $(gui_flags)
556endef
557define build_gui
558        $(MAKE) -C $(gui) all
559endef
560define install_gui
561        $(MAKE) -C $(gui) install
562endef
563define touch_gui
564        touch $(gui)/timestamp
565endef
566
567$(gui)/timestamp: $(lib)/timestamp \
568                  $(blt)/timestamp \
569                  $(itk)/timestamp \
570                  $(htmlwidget)/timestamp \
571                  $(shape)/timestamp \
572                  $(tdom)/timestamp \
573                  $(tcllib)/timestamp \
574                  $(tls)/timestamp \
575                  $(tkimg)/timestamp \
576                  $(sqlitetcl)/timestamp \
577                  $(vtk_timestamp)
578        + $(clean_gui)
579        + $(fetch_gui)
580        + $(configure_gui)
581        + $(build_gui)
582        + $(install_gui)
583        + $(touch_gui)
584
585# -------------------------------------------------------------------------
586#  HTMLWIDGET
587# -------------------------------------------------------------------------
588
589htmlwidget_flags = \
590        --enable-shared \
591        $(common_flags)
592
593htmlwidget: $(htmlwidget)/timestamp
594
595clean-htmlwidget:
596        $(clean_htmlwidget)
597fetch-htmlwidget:
598        $(fetch_htmlwidget)
599configure-htmlwidget:
600        $(configure_htmlwidget)
601build-htmlwidget:
602        $(build_htmlwidget)
603install-htmlwidget:
604        $(install_htmlwidget)
605touch-htmlwidget:
606        $(touch_htmlwidget)
607force-htmlwidget: $(tk)/timestamp
608        + $(clean_htmlwidget)
609        + $(fetch_htmlwidget)
610        + $(configure_htmlwidget)
611        + $(build_htmlwidget)
612        + $(install_htmlwidget)
613        + $(touch_htmlwidget)
614
615define clean_htmlwidget
616        $(RM) -r $(htmlwidget)
617endef
618define fetch_htmlwidget
619        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(htmlwidget)
620endef
621define configure_htmlwidget
622        $(MKDIR_P) $(htmlwidget)
623        cd $(htmlwidget); $(runtime)/$(htmlwidget)/configure $(htmlwidget_flags)
624endef
625define build_htmlwidget
626        $(MAKE) -C $(htmlwidget) all
627endef
628define install_htmlwidget
629        $(MAKE) -C $(htmlwidget) install
630endef
631define touch_htmlwidget
632        touch $(htmlwidget)/timestamp
633endef
634
635$(htmlwidget)/timestamp: $(tk)/timestamp
636        + $(clean_htmlwidget)
637        + $(fetch_htmlwidget)
638        + $(configure_htmlwidget)
639        + $(build_htmlwidget)
640        + $(install_htmlwidget)
641        + $(touch_htmlwidget)
642
643# -------------------------------------------------------------------------
644#  ITCL
645# -------------------------------------------------------------------------
646
647itcl_flags =    \
648        --enable-shared \
649        $(common_flags)
650
651itcl: $(itcl)/timestamp
652
653clean-itcl:
654        $(clean_itcl)
655fetch-itcl:
656        $(fetch_itcl)
657configure-itcl:
658        $(configure_itcl)
659build-itcl:
660        $(build_itcl)
661install-itcl:
662        $(install_itcl)
663touch-itcl:
664        $(touch_itcl)
665force-itcl:
666        + $(clean_itcl)
667        + $(fetch_itcl)
668        + $(configure_itcl)
669        + $(build_itcl)
670        + $(install_itcl)
671        + $(touch_itcl)
672
673define clean_itcl
674        $(RM) -r $(itcl)
675endef
676define fetch_itcl
677        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(itcl)
678endef
679define configure_itcl
680        $(MKDIR_P) $(itcl)
681        cd $(itcl); $(runtime)/$(itcl)/configure $(itcl_flags)
682endef
683define build_itcl
684        $(MAKE)  -C $(itcl) all
685endef
686define install_itcl
687        $(MAKE) -C $(itcl) install
688endef
689define touch_itcl
690        touch $(itcl)/timestamp
691endef
692
693$(itcl)/timestamp: $(tcl)/timestamp
694        + $(clean_itcl)
695        + $(fetch_itcl)
696        + $(configure_itcl)
697        + $(build_itcl)
698        + $(install_itcl)
699        + $(touch_itcl)
700
701# -------------------------------------------------------------------------
702#  ITK
703# -------------------------------------------------------------------------
704
705itk_flags =     \
706        --enable-shared \
707        $(common_flags)
708
709itk: $(itk)/timestamp
710
711clean-itk:
712        $(clean_itk)
713fetch-itk:
714        $(fetch_itk)
715configure-itk:
716        $(configure_itk)
717build-itk:
718        $(build_itk)
719install-itk:
720        $(install_itk)
721touch-itk:
722        $(touch_itk)
723force-itk: $(itcl)/timestamp $(tk)/timestamp
724        + $(clean_itk)
725        + $(fetch_itk)
726        + $(configure_itk)
727        + $(build_itk)
728        + $(install_itk)
729        + $(touch_itk)
730
731define clean_itk
732        $(RM) -r $(itk)
733endef
734define fetch_itk
735        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(itk)
736endef
737define configure_itk
738        $(MKDIR_P) $(itk)
739        cd $(itk); $(runtime)/$(itk)/configure $(itk_flags)
740endef
741define build_itk
742        $(MAKE) -C $(itk) all
743endef
744define install_itk
745        $(MAKE) -C $(itk) install
746endef
747define touch_itk
748        touch $(itk)/timestamp
749endef
750
751$(itk)/timestamp: $(itcl)/timestamp $(tk)/timestamp
752        + $(clean_itk)
753        + $(fetch_itk)
754        + $(configure_itk)
755        + $(build_itk)
756        + $(install_itk)
757        + $(touch_itk)
758
759# -------------------------------------------------------------------------
760#  LANG
761# -------------------------------------------------------------------------
762
763lang_flags =    \
764        --enable-shared \
765        $(common_flags) \
766        --with-R=${WITH_R} \
767        --with-java=${WITH_JAVA} \
768        --with-matlab=${WITH_MATLAB} \
769        --with-mkoctfile2=${WITH_MKOCTFILE2} \
770        --with-mkoctfile3=${WITH_MKOCTFILE3} \
771        --with-octave=${WITH_OCTAVE} \
772        --with-perl=${WITH_PERL} \
773        --with-python=${WITH_PYTHON} \
774        --with-ruby=${WITH_RUBY} \
775        --with-ruby_sitelibdir=${WITH_RUBY_SITELIBDIR}
776
777lang: $(lang)/timestamp
778
779clean-lang:
780        $(clean_lang)
781fetch-lang:
782        $(fetch_lang)
783configure-lang:
784        $(configure_lang)
785build-lang:
786        $(build_lang)
787install-lang:
788        $(install_lang)
789touch-lang:
790        $(touch_lang)
791force-lang: $(gui)/timestamp
792        + $(clean_lang)
793        + $(fetch_lang)
794        + $(configure_lang)
795        + $(build_lang)
796        + $(install_lang)
797        + $(touch_lang)
798
799define clean_lang
800        $(RM) -r $(lang)
801endef
802define fetch_lang
803endef
804define configure_lang
805        $(MKDIR_P) $(lang)
806        cd $(lang); $(srcdir)/$(lang)/configure $(lang_flags)
807endef
808define build_lang
809        $(MAKE) -C $(lang) all
810endef
811define install_lang
812        $(MAKE) -C $(lang) install
813endef
814define touch_lang
815        touch $(lang)/timestamp
816endef
817
818$(lang)/timestamp: $(lib)/timestamp  $(tcl)/timestamp $(itcl)/timestamp
819        + $(clean_lang)
820        + $(fetch_lang)
821        + $(configure_lang)
822        + $(build_lang)
823        + $(install_lang)
824        + $(touch_lang)
825
826
827# -------------------------------------------------------------------------
828#  LIB
829# -------------------------------------------------------------------------
830
831lib_flags =     \
832        --enable-shared \
833        $(common_flags)
834
835lib: $(lib)/timestamp
836
837clean-lib:
838        $(clean_lib)
839fetch-lib:
840        $(fetch_lib)
841configure-lib:
842        $(configure_lib)
843build-lib:
844        $(build_lib)
845install-lib:
846        $(install_lib)
847touch-lib:
848        $(touch_lib)
849force-lib:
850        + $(clean_lib)
851        + $(fetch_lib)
852        + $(configure_lib)
853        + $(build_lib)
854        + $(install_lib)
855        + $(touch_lib)
856
857define clean_lib
858        $(MAKE) -C $(lib) clean
859        $(RM) $(lib)/timestamp
860endef
861define fetch_lib
862endef
863define configure_lib
864endef
865define build_lib
866        $(MAKE) -C $(lib) all
867endef
868define install_lib
869        $(MAKE) -C $(lib) install
870endef
871define touch_lib
872        touch $(lib)/timestamp
873endef
874
875$(lib)/timestamp:
876        + $(clean_lib)
877        + $(fetch_lib)
878        + $(configure_lib)
879        + $(build_lib)
880        + $(install_lib)
881        + $(touch_lib)
882
883# -------------------------------------------------------------------------
884#  OPTIMIZER
885# -------------------------------------------------------------------------
886
887optimizer_flags =       \
888        --with-tclsh="$(bindir)/tclsh8.5" \
889        --enable-shared \
890        --disable-threads \
891        $(common_flags)
892
893optimizer: $(optimizer)/timestamp
894
895clean-optimizer:
896        $(clean_optimizer)
897fetch-optimizer:
898        $(fetch_optimizer)
899configure-optimizer:
900        $(configure_optimizer)
901build-optimizer:
902        $(build_optimizer)
903install-optimizer:
904        $(install_optimizer)
905touch-optimizer:
906        $(touch_optimizer)
907force-optimizer: $(gui)/timestamp
908        + $(clean_optimizer)
909        + $(fetch_optimizer)
910        + $(configure_optimizer)
911        + $(build_optimizer)
912        + $(install_optimizer)
913        + $(touch_optimizer)
914
915define clean_optimizer
916        $(RM) -r $(optimizer)
917endef
918define fetch_optimizer
919endef
920define configure_optimizer
921        $(MKDIR_P) $(optimizer)
922        cd $(optimizer); $(srcdir)/pkgs/$(optimizer)/configure $(optimizer_flags)
923endef
924define build_optimizer
925        $(MAKE) -C $(optimizer) all
926endef
927define install_optimizer
928        $(MAKE) -C $(optimizer) install
929endef
930define touch_optimizer
931        touch $(optimizer)/timestamp
932endef
933
934$(optimizer)/timestamp: $(gui)/timestamp
935        + $(clean_optimizer)
936        + $(fetch_optimizer)
937        + $(configure_optimizer)
938        + $(build_optimizer)
939        + $(install_optimizer)
940        + $(touch_optimizer)
941
942
943# -------------------------------------------------------------------------
944#  PACKAGES
945# -------------------------------------------------------------------------
946
947packages_flags =        \
948        --enable-shared \
949        $(common_flags)
950
951packages: $(packages)/timestamp
952
953clean-packages:
954        $(clean_packages)
955fetch-packages:
956        $(fetch_packages)
957configure-packages:
958        $(configure_packages)
959build-packages:
960        $(build_packages)
961install-packages:
962        $(install_packages)
963touch-packages:
964        $(touch_packages)
965force-packages: $(gui)/timestamp
966        + $(clean_packages)
967        + $(fetch_packages)
968        + $(configure_packages)
969        + $(build_packages)
970        + $(install_packages)
971        + $(touch_packages)
972
973define clean_packages
974        $(MAKE) -C $(packages) clean
975endef
976define fetch_packages
977endef
978define configure_packages
979endef
980define build_packages
981        $(MAKE) -C $(packages) all
982endef
983define install_packages
984        $(MAKE) -C $(packages) install
985endef
986define touch_packages
987        touch $(packages)/timestamp
988endef
989
990$(packages)/timestamp: $(gui)/timestamp
991        + $(clean_packages)
992        + $(fetch_packages)
993        + $(configure_packages)
994        + $(build_packages)
995        + $(install_packages)
996        + $(touch_packages)
997
998# -------------------------------------------------------------------------
999#  SHAPE
1000# -------------------------------------------------------------------------
1001
1002shape_flags =   \
1003        --enable-shared \
1004        --with-tclconf=$(libdir) \
1005        --with-tkconf=$(libdir) \
1006        $(common_flags)
1007
1008shape: $(shape)/timestamp
1009
1010clean-shape:
1011        $(clean_shape)
1012fetch-shape:
1013        $(fetch_shape)
1014configure-shape:
1015        $(configure_shape)
1016build-shape:
1017        $(build_shape)
1018install-shape:
1019        $(install_shape)
1020touch-shape:
1021        $(touch_shape)
1022force-shape: $(tk)/timestamp
1023        + $(clean_shape)
1024        + $(fetch_shape)
1025        + $(configure_shape)
1026        + $(build_shape)
1027        + $(install_shape)
1028        + $(touch_shape)
1029
1030define clean_shape
1031        $(RM) -r $(shape)
1032endef
1033define fetch_shape
1034        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(shape)
1035endef
1036define configure_shape
1037        $(MKDIR_P) $(shape)
1038        cd $(shape); $(runtime)/$(shape)/unix/configure $(shape_flags)
1039endef
1040define build_shape
1041        $(MAKE) -C $(shape) all
1042endef
1043define install_shape
1044        $(MAKE) -C $(shape) install
1045endef
1046define touch_shape
1047        touch $(shape)/timestamp
1048endef
1049
1050$(shape)/timestamp: $(tk)/timestamp
1051        + $(clean_shape)
1052        + $(fetch_shape)
1053        + $(configure_shape)
1054        + $(build_shape)
1055        + $(install_shape)
1056        + $(touch_shape)
1057
1058# -------------------------------------------------------------------------
1059#  SQLITETCL
1060# -------------------------------------------------------------------------
1061
1062sqlitetcl_flags = \
1063        --enable-shared \
1064        $(common_flags)
1065
1066sqlitetcl: $(sqlitetcl)/timestamp
1067
1068clean-sqlitetcl:
1069        $(clean_sqlitetcl)
1070fetch-sqlitetcl:
1071        $(fetch_sqlitetcl)
1072configure-sqlitetcl:
1073        $(configure_sqlitetcl)
1074build-sqlitetcl:
1075        $(build_sqlitetcl)
1076install-sqlitetcl:
1077        $(install_sqlitetcl)
1078touch-sqlitetcl:
1079        $(touch_sqlitetcl)
1080force-sqlitetcl: $(tcl)/timestamp
1081        + $(clean_sqlitetcl)
1082        + $(fetch_sqlitetcl)
1083        + $(configure_sqlitetcl)
1084        + $(build_sqlitetcl)
1085        + $(install_sqlitetcl)
1086        + $(touch_sqlitetcl)
1087
1088define clean_sqlitetcl
1089        $(RM) -r $(sqlitetcl)
1090endef
1091define fetch_sqlitetcl
1092        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(sqlitetcl)
1093endef
1094define configure_sqlitetcl
1095        $(MKDIR_P) $(sqlitetcl)
1096        cd $(sqlitetcl); $(runtime)/$(sqlitetcl)/tea/configure $(sqlitetcl_flags)
1097endef
1098define build_sqlitetcl
1099        $(MAKE) -C $(sqlitetcl) all
1100endef
1101define install_sqlitetcl
1102        $(MAKE) -C $(sqlitetcl) install
1103endef
1104define touch_sqlitetcl
1105        touch $(sqlitetcl)/timestamp
1106endef
1107
1108$(sqlitetcl)/timestamp: $(tcl)/timestamp
1109        + $(clean_sqlitetcl)
1110        + $(fetch_sqlitetcl)
1111        + $(configure_sqlitetcl)
1112        + $(build_sqlitetcl)
1113        + $(install_sqlitetcl)
1114        + $(touch_sqlitetcl)
1115
1116# -------------------------------------------------------------------------
1117#  TCL
1118# -------------------------------------------------------------------------
1119
1120tcl_flags =     \
1121        --enable-shared \
1122        --disable-threads \
1123        $(common_flags)
1124
1125tcl: $(tcl)/timestamp
1126
1127clean-tcl:
1128        $(clean_tcl)
1129fetch-tcl:
1130        $(fetch_tcl)
1131configure-tcl:
1132        $(configure_tcl)
1133build-tcl:
1134        $(build_tcl)
1135install-tcl:
1136        $(install_tcl)
1137touch-tcl:
1138        $(touch_tcl)
1139force-tcl:
1140        + $(clean_tcl)
1141        + $(fetch_tcl)
1142        + $(configure_tcl)
1143        + $(build_tcl)
1144        + $(install_tcl)
1145        + $(touch_tcl)
1146
1147define fetch_tcl
1148        sh $(srcdir)/fetch.sh $(TAG) $(srcdir) $(tcl)
1149endef
1150define clean_tcl
1151        $(RM) -r $(tcl)
1152endef
1153define fetch_tcl
1154        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tcl)
1155endef
1156define configure_tcl
1157        $(MKDIR_P) $(tcl)
1158        cd $(tcl); $(srcdir)/runtime/$(tcl)/unix/configure $(tcl_flags)
1159endef
1160define build_tcl
1161        $(MAKE)  -C $(tcl) all
1162endef
1163define install_tcl
1164        $(MAKE) -C $(tcl) install
1165        $(RM) $(bindir)/tclsh
1166        (. ${libdir}/tclConfig.sh ; cd $(bindir); $(LN_S) tclsh$${TCL_VERSION} tclsh)
1167endef
1168define touch_tcl
1169        touch $(tcl)/timestamp
1170endef
1171
1172$(tcl)/timestamp:
1173        + $(clean_tcl)
1174        + $(fetch_tcl)
1175        + $(configure_tcl)
1176        + $(build_tcl)
1177        + $(install_tcl)
1178        + $(touch_tcl)
1179
1180# -------------------------------------------------------------------------
1181#  TCLLIB
1182# -------------------------------------------------------------------------
1183
1184tcllib_flags =  \
1185        --enable-shared \
1186        $(common_flags)
1187
1188tcllib: $(tcllib)/timestamp
1189
1190clean-tcllib:
1191        $(clean_tcllib)
1192fetch-tcllib:
1193        $(fetch_tcllib)
1194configure-tcllib:
1195        $(configure_tcllib)
1196build-tcllib:
1197        $(build_tcllib)
1198install-tcllib:
1199        $(install_tcllib)
1200touch-tcllib:
1201        $(touch_tcllib)
1202force-tcllib: $(tcl)/timestamp
1203        + $(clean_tcllib)
1204        + $(fetch_tcllib)
1205        + $(configure_tcllib)
1206        + $(build_tcllib)
1207        + $(install_tcllib)
1208        + $(touch_tcllib)
1209
1210define clean_tcllib
1211        $(RM) -r $(tcllib)
1212endef
1213define fetch_tcllib
1214        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tcllib)
1215endef
1216define configure_tcllib
1217        $(MKDIR_P) $(tcllib)
1218        cd $(tcllib); $(runtime)/$(tcllib)/configure $(tcllib_flags)
1219endef
1220define build_tcllib
1221        $(MAKE) -C $(tcllib) all
1222endef
1223define install_tcllib
1224        $(MAKE) -C $(tcllib) install
1225endef
1226define touch_tcllib
1227        touch $(tcllib)/timestamp
1228endef
1229
1230$(tcllib)/timestamp: $(tcl)/timestamp
1231        + $(clean_tcllib)
1232        + $(fetch_tcllib)
1233        + $(configure_tcllib)
1234        + $(build_tcllib)
1235        + $(install_tcllib)
1236        + $(touch_tcllib)
1237
1238# -------------------------------------------------------------------------
1239#  TDOM
1240# -------------------------------------------------------------------------
1241
1242tdom_flags =    \
1243        --enable-shared \
1244        $(common_flags)
1245
1246tdom: $(tdom)/timestamp
1247
1248clean-tdom:
1249        $(clean_tdom)
1250fetch-tdom:
1251        $(fetch_tdom)
1252configure-tdom:
1253        $(configure_tdom)
1254build-tdom:
1255        $(build_tdom)
1256install-tdom:
1257        $(install_tdom)
1258touch-tdom:
1259        $(touch_tdom)
1260force-tdom: $(tcl)/timestamp
1261        + $(clean_tdom)
1262        + $(fetch_tdom)
1263        + $(configure_tdom)
1264        + $(build_tdom)
1265        + $(install_tdom)
1266        + $(touch_tdom)
1267
1268define clean_tdom
1269        $(RM) -r $(tdom)
1270endef
1271define fetch_tdom
1272        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tdom)
1273endef
1274define configure_tdom
1275        $(MKDIR_P) $(tdom)
1276        cd $(tdom); $(runtime)/$(tdom)/configure $(tdom_flags)
1277endef
1278define build_tdom
1279        $(MAKE) -C $(tdom) all
1280endef
1281define install_tdom
1282        $(MAKE) -C $(tdom) install
1283endef
1284define touch_tdom
1285        touch $(tdom)/timestamp
1286endef
1287
1288$(tdom)/timestamp: $(tcl)/timestamp
1289        + $(clean_tdom)
1290        + $(fetch_tdom)
1291        + $(configure_tdom)
1292        + $(build_tdom)
1293        + $(install_tdom)
1294        + $(touch_tdom)
1295
1296# -------------------------------------------------------------------------
1297#  TK
1298# -------------------------------------------------------------------------
1299
1300tk_flags =      \
1301        --enable-shared \
1302        --disable-threads \
1303        $(common_flags)
1304
1305tk: $(tk)/timestamp
1306
1307clean-tk:
1308        $(clean_tk)
1309fetch-tk:
1310        $(fetch_tk)
1311configure-tk:
1312        $(configure_tk)
1313build-tk:
1314        $(build_tk)
1315install-tk:
1316        $(install_tk)
1317touch-tk:
1318        $(touch_tk)
1319force-tk: $(tcl)/timestamp
1320        + $(clean_tk)
1321        + $(fetch_tk)
1322        + $(configure_tk)
1323        + $(build_tk)
1324        + $(install_tk)
1325        + $(touch_tk)
1326
1327define clean_tk
1328        $(RM) -r $(tk)
1329endef
1330define fetch_tk
1331        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tk)
1332endef
1333define configure_tk
1334        $(MKDIR_P) $(tk)
1335        cd $(tk); $(runtime)/$(tk)/unix/configure $(tk_flags)
1336endef
1337define build_tk
1338        $(MAKE)  -C $(tk) all
1339endef
1340define install_tk
1341        $(MAKE) -C $(tk) install
1342        $(RM) $(bindir)/wish
1343        (. $(libdir)/tkConfig.sh ; cd $(bindir); $(LN_S) wish$${TK_VERSION} wish)
1344endef
1345define touch_tk
1346        touch $(tk)/timestamp
1347endef
1348
1349$(tk)/timestamp: $(tcl)/timestamp
1350        + $(clean_tk)
1351        + $(fetch_tk)
1352        + $(configure_tk)
1353        + $(build_tk)
1354        + $(install_tk)
1355        + $(touch_tk)
1356
1357# -------------------------------------------------------------------------
1358#  TKING
1359# -------------------------------------------------------------------------
1360
1361tkimg_flags =   \
1362        --enable-shared \
1363        $(common_flags)
1364
1365tkimg: $(tkimg)/timestamp
1366
1367clean-tkimg:
1368        $(clean_tkimg)
1369fetch-tkimg:
1370        $(fetch_tkimg)
1371configure-tkimg:
1372        $(configure_tkimg)
1373build-tkimg:
1374        $(build_tkimg)
1375install-tkimg:
1376        $(install_tkimg)
1377touch-tkimg:
1378        $(touch_tkimg)
1379force-tkimg: $(tk)/timestamp
1380        + $(clean_tkimg)
1381        + $(fetch_tkimg)
1382        + $(configure_tkimg)
1383        + $(build_tkimg)
1384        + $(install_tkimg)
1385        + $(touch_tkimg)
1386
1387define clean_tkimg
1388        $(RM) -r $(tkimg)
1389endef
1390define fetch_tkimg
1391        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tkimg)
1392endef
1393define configure_tkimg
1394        $(MKDIR_P) $(tkimg)
1395        cd $(tkimg); $(runtime)/$(tkimg)/configure $(tkimg_flags)
1396endef
1397define build_tkimg
1398        $(MAKE) -C $(tkimg) all
1399endef
1400define install_tkimg
1401        $(MAKE) -C $(tkimg) install
1402endef
1403define touch_tkimg
1404        touch $(tkimg)/timestamp
1405endef
1406
1407$(tkimg)/timestamp: $(tk)/timestamp
1408        + $(clean_tkimg)
1409        + $(fetch_tkimg)
1410        + $(configure_tkimg)
1411        + $(build_tkimg)
1412        + $(install_tkimg)
1413        + $(touch_tkimg)
1414
1415# -------------------------------------------------------------------------
1416#  TLS
1417# -------------------------------------------------------------------------
1418
1419tls_flags =     \
1420        --enable-shared \
1421        $(common_flags)
1422
1423tls: $(tls)/timestamp
1424
1425clean-tls:
1426        $(clean_tls)
1427fetch-tls:
1428        $(fetch_tls)
1429configure-tls:
1430        $(configure_tls)
1431build-tls:
1432        $(build_tls)
1433install-tls:
1434        $(install_tls)
1435touch-tls:
1436        $(touch_tls)
1437force-tls: $(tcl)/timestamp
1438        + $(clean_tls)
1439        + $(fetch_tls)
1440        + $(configure_tls)
1441        + $(build_tls)
1442        + $(install_tls)
1443        + $(touch_tls)
1444
1445define clean_tls
1446        $(RM) -r $(tls)
1447endef
1448define fetch_tls
1449        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tls)
1450endef
1451define configure_tls
1452        $(MKDIR_P) $(tls)
1453        cd $(tls); $(runtime)/$(tls)/configure $(tls_flags)
1454endef
1455define build_tls
1456        $(MAKE) -C $(tls) all
1457endef
1458define install_tls
1459        $(MAKE) -C $(tls) install
1460endef
1461define touch_tls
1462        touch $(tls)/timestamp
1463endef
1464
1465$(tls)/timestamp: $(tcl)/timestamp
1466        + $(clean_tls)
1467        + $(fetch_tls)
1468        + $(configure_tls)
1469        + $(build_tls)
1470        + $(install_tls)
1471        + $(touch_tls)
1472
1473# -------------------------------------------------------------------------
1474#  VIDEO
1475# -------------------------------------------------------------------------
1476
1477video_flags =   \
1478        --with-tclsh="$(bindir)/tclsh" \
1479        --enable-shared \
1480        $(common_flags)
1481
1482video: $(video)/timestamp
1483
1484clean-video:
1485        $(clean_video)
1486fetch-video:
1487        $(fetch_video)
1488configure-video:
1489        $(configure_video)
1490build-video:
1491        $(build_video)
1492install-video:
1493        $(install_video)
1494touch-video:
1495        $(touch_video)
1496force-video: #$(gui)/timestamp
1497        + $(clean_video)
1498        + $(fetch_video)
1499        + $(configure_video)
1500        + $(build_video)
1501        + $(install_video)
1502        + $(touch_video)
1503
1504define clean_video
1505        $(RM) -r $(video)
1506endef
1507define fetch_video
1508endef
1509define configure_video
1510        $(MKDIR_P) $(video)
1511        cd $(video); $(srcdir)/pkgs/$(video)/configure $(video_flags)
1512endef
1513define build_video
1514        $(MAKE) -C $(video) all
1515endef
1516define install_video
1517        $(MAKE) -C $(video) install
1518endef
1519define touch_video
1520        touch $(video)/timestamp
1521endef
1522
1523$(video)/timestamp: $(gui)/timestamp
1524        + $(clean_video)
1525        + $(fetch_video)
1526        + $(configure_video)
1527        + $(build_video)
1528        + $(install_video)
1529        + $(touch_video)
1530
1531# -------------------------------------------------------------------------
1532#  VTK
1533# -------------------------------------------------------------------------
1534
1535vtk_flags =     \
1536        $(common_flags)
1537
1538vtk: $(vtk)/timestamp
1539
1540clean-vtk:
1541        $(clean_vtk)
1542fetch-vtk:
1543        $(fetch_vtk)
1544configure-vtk:
1545        $(configure_vtk)
1546build-vtk:
1547        $(build_vtk)
1548install-vtk:
1549        $(install_vtk)
1550touch-vtk:
1551        $(touch_vtk)
1552force-vtk: $(cmake)/timestamp $(tcl)/timestamp $(tk)/timestamp
1553        + $(clean_vtk)
1554        + $(fetch_vtk)
1555        + $(configure_vtk)
1556        + $(build_vtk)
1557        + $(install_vtk)
1558        + $(touch_vtk)
1559
1560define clean_vtk
1561        $(RM) -r $(vtk)
1562endef
1563define fetch_vtk
1564        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(vtk)
1565endef
1566define configure_vtk
1567        $(MKDIR_P) $(vtk)
1568        cd $(vtk); $(runtime)/$(vtk)/configure $(vtk_flags)
1569endef
1570define build_vtk
1571        $(MAKE)  -C $(vtk) all
1572endef
1573define install_vtk
1574        $(MAKE) -C $(vtk) install
1575        $(RM) $(includedir)/vtk
1576        (cd $(includedir); $(LN_S) vtk-$(VTK_VERSION) vtk)
1577        $(RM) $(libdir)/tcltk/vtk
1578        (cd $(libdir)/tcltk; $(LN_S) vtk-$(VTK_VERSION) vtk)
1579endef
1580define touch_vtk
1581        touch $(vtk)/timestamp
1582endef
1583
1584$(vtk)/timestamp: $(cmake)/timestamp $(tcl)/timestamp $(tk)/timestamp
1585        + $(clean_vtk)
1586        + $(fetch_vtk)
1587        + $(configure_vtk)
1588        + $(build_vtk)
1589        + $(install_vtk)
1590        + $(touch_vtk)
1591
1592# -------------------------------------------------------------------------
1593#  ZLIB
1594# -------------------------------------------------------------------------
1595
1596zlib_flags =    \
1597        --enable-shared \
1598        $(common_flags)
1599
1600zlib: $(zlib)/timestamp
1601
1602clean-zlib:
1603        $(clean_zlib)
1604fetch-zlib:
1605        $(fetch_zlib)
1606configure-zlib:
1607        $(configure_zlib)
1608build-zlib:
1609        $(build_zlib)
1610install-zlib:
1611        $(install_zlib)
1612touch-zlib:
1613        $(touch_zlib)
1614force-zlib:
1615        + $(clean_zlib)
1616        + $(fetch_zlib)
1617        + $(configure_zlib)
1618        + $(build_zlib)
1619        + $(install_zlib)
1620        + $(touch_zlib)
1621
1622define clean_zlib
1623        $(RM) -r $(zlib)
1624endef
1625define fetch_zlib
1626        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(zlib)
1627endef
1628define configure_zlib
1629        $(MKDIR_P) $(zlib)
1630        cd $(zlib); $(runtime)/$(zlib)/configure $(zlib_flags)
1631endef
1632define build_zlib
1633        $(MAKE) -C $(zlib) all
1634endef
1635define install_zlib
1636        $(MAKE) -C $(zlib) install
1637endef
1638define touch_zlib
1639        touch $(zlib)/timestamp
1640endef
1641
1642$(zlib)/timestamp:
1643        + $(clean_zlib)
1644        + $(fetch_zlib)
1645        + $(configure_zlib)
1646        + $(build_zlib)
1647        + $(install_zlib)
1648        + $(touch_zlib)
1649
1650
1651TRASH = \
1652        ./bin/bltsh30 \
1653        ./bin/bltwish30 \
1654        ./bin/dtplite \
1655        ./bin/flowvis-test \
1656        ./bin/mapviewer-test \
1657        ./bin/nanovis-test \
1658        ./bin/nns \
1659        ./bin/nnsd \
1660        ./bin/nnslog \
1661        ./bin/page \
1662        ./bin/tcldocstrip \
1663        ./bin/vtkglyphs-test \
1664        ./bin/vtkheightmap-test \
1665        ./bin/vtkisosurface-test \
1666        ./bin/vtkstreamlines-test \
1667        ./bin/vtkviewer-test \
1668        ./bin/vtkvolume-test \
1669        ./lib/bltConfig.sh \
1670        ./lib/itclConfig.sh \
1671        ./lib/jpegtclConfig.sh \
1672        ./lib/libBltTcl30.so \
1673        ./lib/libBltTk30.so \
1674        ./lib/pngtclConfig.sh \
1675        ./lib/tdomConfig.sh \
1676        ./lib/tifftclConfig.sh \
1677        ./lib/tkConfig.sh \
1678        ./lib/tkimgConfig.sh \
1679        ./lib/zlibtclConfig.sh \
1680        ./man \
1681        ./share
1682
1683installdir =    rappture_install
1684tmpdir =        /tmp/$(installdir)
1685arch =          $(shell uname -m)
1686package:
1687        $(RM) -r $(tmpdir)
1688        $(MKDIR_P) $(tmpdir)
1689        tar -C $(DESTDIR)$(exec_prefix) -clf - . | tar -C $(tmpdir) -xpf -
1690        for i in $(TRASH); do \
1691           $(RM) -r $(tmpdir)/$$i ; \
1692        done
1693        $(bindir)/bltsh30 fixrunpaths.tcl $(tmpdir)
1694        tar -C /tmp -zclf rappture$(version)-linux-$(arch).tar.gz $(installdir)
1695        $(RM) -r $(tmpdir)
1696
Note: See TracBrowser for help on using the repository browser.