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

Last change on this file since 120132 was 120132, checked in by jmr@…, 6 years ago

make tclthread build rule depend on tcl, fix typo

File size: 3.0 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%-tcllib:
40        @echo ===\> making $(@:%-tcllib=%) in ${DIRPRFX}@VENDOR_TCLLIB_SUBDIR@
41        @umask 0022; $(MAKE) -C @VENDOR_TCLLIB_SUBDIR@ $(@:%-tcllib=%)
42
43destroot: destroot-tcl destroot-tclthread destroot-tclx destroot-tcllib
44destroot-tcl: all-tcl
45        @echo ===\> staging to destroot in ${DIRPRFX}@VENDOR_TCL_SUBDIR@
46        @umask 0022; $(MAKE) -C @VENDOR_TCL_SUBDIR@ DESTDIR=${DESTROOT} @VENDOR_TCL_INSTALL@
47
48destroot-tclthread: all-tclthread
49        @echo ===\> staging to destroot in ${DIRPRFX}@VENDOR_TCLTHREAD_SUBDIR@
50        @umask 0022; $(MAKE) -C @VENDOR_TCLTHREAD_SUBDIR@ DESTDIR=${DESTROOT} @VENDOR_TCLTHREAD_INSTALL@
51
52destroot-tclx: all-tclx
53        @echo ===\> staging to destroot in ${DIRPRFX}@VENDOR_TCLX_SUBDIR@
54        @umask 0022; $(MAKE) -C @VENDOR_TCLX_SUBDIR@ DESTDIR=${DESTROOT} @VENDOR_TCLX_INSTALL@
55
56destroot-tcllib: all-tcllib
57        @echo ===\> staging to destroot in ${DIRPRFX}@VENDOR_TCLLIB_SUBDIR@
58        @umask 0022; $(MAKE) -C @VENDOR_TCLLIB_SUBDIR@ DESTDIR=${DESTROOT} @VENDOR_TCLLIB_INSTALL@
59
60install: install-tcl install-tclthread install-tclx install-tcllib
61install-tcl:
62        @echo ===\> making $(@:%-tcl=%) in ${DIRPRFX}@VENDOR_TCL_SUBDIR@
63        @umask 0022; $(MAKE) -C @VENDOR_TCL_SUBDIR@ @VENDOR_TCL_INSTALL@
64
65install-tclthread:
66        @echo ===\> making $(@:%-tclthrad=%) in ${DIRPRFX}@VENDOR_TCLTHREAD_SUBDIR@
67        @umask 0022; $(MAKE) -C @VENDOR_TCLTHREAD_SUBDIR@ @VENDOR_TCLTHREAD_INSTALL@
68
69install-tclx:
70        @echo ===\> making $(@:%-tclx=%) in ${DIRPRFX}@VENDOR_TCLX_SUBDIR@
71        @umask 0022; $(MAKE) -C @VENDOR_TCLX_SUBDIR@ @VENDOR_TCLX_INSTALL@
72
73install-tcllib:
74        @echo ===\> making $(@:%-tcllib=%) in ${DIRPRFX}@VENDOR_TCLLIB_SUBDIR@
75        @umask 0022; $(MAKE) -C @VENDOR_TCLLIB_SUBDIR@ @VENDOR_TCLLIB_INSTALL@
76
77test:
78
79clean: clean-tcl clean-tcllib clean-tclx clean-tclthread
80        rm -rf ${DESTROOT}
81
82distclean:
83        rm -f Makefile
84        rm -rf $(TCL_SUBDIR:/unix=) $(TCLTHREAD_SUBDIR) $(TCLX_SUBDIR) $(TCLLIB_SUBDIR)
85        rm -rf vendor-destroot
Note: See TracBrowser for help on using the repository browser.