source: trunk/base/vendor/Makefile.in @ 129850

Last change on this file since 129850 was 120133, checked in by jmr@…, 5 years ago

also make tclx build rules depend on tcl

File size: 3.1 KB
Line 
1TCL_SUBDIR=                     @VENDOR_TCL_SUBDIR@
2TCL_TARGETS=            @VENDOR_TCL_INSTALL@
3
4TCLTHREAD_SUBDIR=       @VENDOR_TCLTHREAD_SUBDIR@
5TCLTREHAD_TARGETS=      @VENDOR_TCLTHREAD_INSTALL@
6
7TCLX_SUBDIR=            @VENDOR_TCLX_SUBDIR@
8TCLX_TARGETS=           @VENDOR_TCLX_INSTALL@
9
10TCLLIB_SUBDIR=          @VENDOR_TCLLIB_SUBDIR@
11TCLLIB_TARGETS=         @VENDOR_TCLLIB_INSTALL@
12
13DESTROOT=               @abs_top_builddir@/vendor/vendor-destroot
14
15.PHONY: all clean distclean install destroot test
16.PHONY: destroot-tcl destroot-tcllthread destroot-tclx destroot-tcllib
17.PHONY: install-tcl install-tcllthread install-tclx install-tcllib
18.PHONY: %-tcl %-tcllthread %-tclx %-tcllib
19
20# for make all, run destroot (where destroot will depend on all of each
21# subpackage)
22all: destroot
23
24%-tcl:
25        @echo ===\> making $(@:%-tcl=%) in ${DIRPRFX}@VENDOR_TCL_SUBDIR@
26        @umask 0022; $(MAKE) -C @VENDOR_TCL_SUBDIR@ $(@:%-tcl=%)
27
28%-tclthread:
29        @echo ===\> making $(@:%-tclthread=%) in ${DIRPRFX}@VENDOR_TCLTHREAD_SUBDIR@
30        @umask 0022; $(MAKE) -C @VENDOR_TCLTHREAD_SUBDIR@ $(@:%-tclthread=%)
31
32# thread links against libtclstub
33all-tclthread: all-tcl
34
35%-tclx:
36        @echo ===\> making $(@:%-tclx=%) in ${DIRPRFX}@VENDOR_TCLX_SUBDIR@
37        @umask 0022; $(MAKE) -C @VENDOR_TCLX_SUBDIR@ $(@:%-tclx=%)
38
39# tclx also links against libtclstub
40all-tclx: all-tcl
41
42%-tcllib:
43        @echo ===\> making $(@:%-tcllib=%) in ${DIRPRFX}@VENDOR_TCLLIB_SUBDIR@
44        @umask 0022; $(MAKE) -C @VENDOR_TCLLIB_SUBDIR@ $(@:%-tcllib=%)
45
46destroot: destroot-tcl destroot-tclthread destroot-tclx destroot-tcllib
47destroot-tcl: all-tcl
48        @echo ===\> staging to destroot in ${DIRPRFX}@VENDOR_TCL_SUBDIR@
49        @umask 0022; $(MAKE) -C @VENDOR_TCL_SUBDIR@ DESTDIR=${DESTROOT} @VENDOR_TCL_INSTALL@
50
51destroot-tclthread: all-tclthread
52        @echo ===\> staging to destroot in ${DIRPRFX}@VENDOR_TCLTHREAD_SUBDIR@
53        @umask 0022; $(MAKE) -C @VENDOR_TCLTHREAD_SUBDIR@ DESTDIR=${DESTROOT} @VENDOR_TCLTHREAD_INSTALL@
54
55destroot-tclx: all-tclx
56        @echo ===\> staging to destroot in ${DIRPRFX}@VENDOR_TCLX_SUBDIR@
57        @umask 0022; $(MAKE) -C @VENDOR_TCLX_SUBDIR@ DESTDIR=${DESTROOT} @VENDOR_TCLX_INSTALL@
58
59destroot-tcllib: all-tcllib
60        @echo ===\> staging to destroot in ${DIRPRFX}@VENDOR_TCLLIB_SUBDIR@
61        @umask 0022; $(MAKE) -C @VENDOR_TCLLIB_SUBDIR@ DESTDIR=${DESTROOT} @VENDOR_TCLLIB_INSTALL@
62
63install: install-tcl install-tclthread install-tclx install-tcllib
64install-tcl:
65        @echo ===\> making $(@:%-tcl=%) in ${DIRPRFX}@VENDOR_TCL_SUBDIR@
66        @umask 0022; $(MAKE) -C @VENDOR_TCL_SUBDIR@ @VENDOR_TCL_INSTALL@
67
68install-tclthread:
69        @echo ===\> making $(@:%-tclthrad=%) in ${DIRPRFX}@VENDOR_TCLTHREAD_SUBDIR@
70        @umask 0022; $(MAKE) -C @VENDOR_TCLTHREAD_SUBDIR@ @VENDOR_TCLTHREAD_INSTALL@
71
72install-tclx:
73        @echo ===\> making $(@:%-tclx=%) in ${DIRPRFX}@VENDOR_TCLX_SUBDIR@
74        @umask 0022; $(MAKE) -C @VENDOR_TCLX_SUBDIR@ @VENDOR_TCLX_INSTALL@
75
76install-tcllib:
77        @echo ===\> making $(@:%-tcllib=%) in ${DIRPRFX}@VENDOR_TCLLIB_SUBDIR@
78        @umask 0022; $(MAKE) -C @VENDOR_TCLLIB_SUBDIR@ @VENDOR_TCLLIB_INSTALL@
79
80test:
81
82clean: clean-tcl clean-tcllib clean-tclx clean-tclthread
83        rm -rf ${DESTROOT}
84
85distclean:
86        rm -f Makefile
87        rm -rf $(TCL_SUBDIR:/unix=) $(TCLTHREAD_SUBDIR) $(TCLX_SUBDIR) $(TCLLIB_SUBDIR)
88        rm -rf vendor-destroot
Note: See TracBrowser for help on using the repository browser.