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

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

vendor: fix distclean

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