source: CMT/v1r25-branch/mgr/fragments/nmake/constituent @ 671

Last change on this file since 671 was 671, checked in by rybkin, 10 years ago

merge -r 668:670 HEAD

File size: 5.3 KB
Line 
1#-- start of constituent ------
2
3cmt_${CONSTITUENT}_${HASTARGETTAG} = 1
4cmt_${CONSTITUENT}_${HASDEPENDENCIES} = 1
5
6#----------------------------------------
7
8!if defined (cmt_${CONSTITUENT}_has_target_tag)
9
10cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag)_${CONSTITUENT}.nmake
11cmt_final_setup_${CONSTITUENT} = $(bin)setup_${CONSTITUENT}.nmake
12cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.nmake
13
14${CONSTITUENT}_extratags = -tag_add=target_${CONSTITUENT}
15
16!else
17
18cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag).nmake
19cmt_final_setup_${CONSTITUENT} = $(bin)setup.nmake
20cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.nmake
21
22!endif
23
24!if defined (cmt_${CONSTITUENT}_has_target_tag)
25
26!if "$(QUICK)" == "" || !exist ($(cmt_local_${CONSTITUENT}_makefile)) || !exist ($(cmt_local_tagfile_${CONSTITUENT})) || !exist ($(cmt_final_setup_${CONSTITUENT}))
27$(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) dirs
28        $(echo) (constituents.nmake) Building ${CONSTITUENT}.nmake
29        @set include=$(include)
30        @set lib=$(lib)
31        @$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_config -out=$@ ${CONSTITUENT}
32!else
33$(cmt_local_${CONSTITUENT}_makefile) : $(${CONSTITUENT}_dependencies) $(use_requirements)
34        @set include=$(include)
35        @set lib=$(lib)
36        @if not "$?"=="$(${CONSTITUENT}_dependencies)" ((if not "$(cmtmsg)"=="" @echo "$(CMTMSGPREFIX)" "(constituents.nmake) Rebuilding ${CONSTITUENT}.nmake") & $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_config -out=$@ ${CONSTITUENT}) else (if not "$(cmtmsg)"=="" @echo "$(CMTMSGPREFIX)" "(constituents.nmake) ${CONSTITUENT}.nmake up-to-date")
37!endif
38
39!else
40
41!if "$(QUICK)" == "" || !exist ($(cmt_local_${CONSTITUENT}_makefile)) || !exist ($(cmt_local_tagfile_${CONSTITUENT})) || !exist ($(cmt_final_setup_${CONSTITUENT}))
42$(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) dirs
43        $(echo) (constituents.nmake) Building ${CONSTITUENT}.nmake
44        @set include=$(include)
45        @set lib=$(lib)
46        @$(cmtexe) -f=$(bin)${CONSTITUENT}.in -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile -without_cmt -out=$@ ${CONSTITUENT}
47!else
48$(cmt_local_${CONSTITUENT}_makefile) : $(${CONSTITUENT}_dependencies) $(use_requirements) $(bin)${CONSTITUENT}.in
49        @set include=$(include)
50        @set lib=$(lib)
51        @if not "$?"=="$(${CONSTITUENT}_dependencies)" ((if not "$(cmtmsg)"=="" @echo "$(CMTMSGPREFIX)" "(constituents.nmake) Rebuilding ${CONSTITUENT}.nmake") & $(cmtexe) -f=$(bin)${CONSTITUENT}.in -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile -without_cmt -out=$@ ${CONSTITUENT}) else (if not "$(cmtmsg)"=="" @echo "$(CMTMSGPREFIX)" "(constituents.nmake) ${CONSTITUENT}.nmake up-to-date")
52!endif
53
54!endif
55
56
57!if defined (cmt_${CONSTITUENT}_has_dependencies)
58
59${CONSTITUENT}dependencies : $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) dirs
60        @set include=$(include)
61        @set lib=$(lib)
62        @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles dependencies tag=$(tag)
63
64${CONSTITUENT} :: ${CONSTITUENT}dependencies
65!else
66${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) dirs
67!endif
68        $(echo) (constituents.nmake) Starting ${CONSTITUENT}
69        @set include=$(include)
70        @set lib=$(lib)
71        @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles ${CONSTITUENT} tag=$(tag)
72        $(echo) (constituents.nmake) ${CONSTITUENT} done
73
74clean :: ${CONSTITUENT}clean ;
75
76${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) ##$(cmt_local_${CONSTITUENT}_makefile)
77        $(echo) (constituents.nmake) Starting $@
78        @set include=$(include)
79        @set lib=$(lib)
80        @-if exist $(cmt_local_${CONSTITUENT}_makefile) $(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles $@ tag=$(tag)
81        $(echo) (constituents.nmake) $@ done
82#       @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles ${CONSTITUENT}clean tag=$(tag)
83
84install :: ${CONSTITUENT}install ;
85
86${CONSTITUENT}install :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile)
87        $(echo) (constituents.nmake) Starting $@
88        @set include=$(include)
89        @set lib=$(lib)
90        @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles install tag=$(tag)
91        $(echo) (constituents.nmake) $@ done
92
93uninstall :: ${CONSTITUENT}uninstall ;
94
95${CONSTITUENT}uninstall :: $(${CONSTITUENT}uninstall_dependencies)
96        $(echo) (constituents.nmake) Starting $@
97        @set include=$(include)
98        @set lib=$(lib)
99        @-if exist $(cmt_local_${CONSTITUENT}_makefile) $(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles uninstall tag=$(tag)
100#       @if not exist $(cmt_local_${CONSTITUENT}_makefile) $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_config -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT}
101#       @if not exist $(cmt_local_${CONSTITUENT}_makefile) $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT}
102#       @-$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles uninstall tag=$(tag)
103        $(echo) (constituents.nmake) $@ done
104
105#-- end of constituent ------
Note: See TracBrowser for help on using the repository browser.