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

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

base: vendor/Makefile.in: Ensure we're using a good umask

Some of the vendor bundles use standard file operations instead of install(1)
with explicit modes to create files and directories. Setting the umask to 0022
avoids problems that might occur because of that.

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