source: CMT/HEAD/mgr/fragments/nmake/constituent_lock @ 472

Last change on this file since 472 was 472, checked in by rybkin, 16 years ago

See C.L. 373

File size: 3.5 KB
Line 
1#-- start of constituent_lock ------
2
3cmt_${CONSTITUENT}_${HASTARGETTAG} = 1
4
5#--------------------------------------------------------
6
7!if defined (cmt_${CONSTITUENT}_has_target_tag)
8
9#cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag)_${CONSTITUENT}.nmake
10cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag)_${CONSTITUENT}.nmake
11cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_${CONSTITUENT}_setup.nmake
12cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.nmake
13
14${CONSTITUENT}_extratags = -tag_add=target_${CONSTITUENT}
15
16!if [if not exist $(bin) mkdir $(bin)] == 0
17!endif
18
19!if "$(QUICK)" == ""
20
21!if [cmt -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >$(cmt_local_tagfile_${CONSTITUENT})] == 0
22!endif
23
24!if [$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >$(cmt_final_setup_${CONSTITUENT})] == 0
25!endif
26
27!endif
28
29!else
30
31#cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag).nmake
32cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag).nmake
33cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_setup.nmake
34cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.nmake
35
36!endif
37
38!if "$(QUICK)" == ""
39$(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) $(cmt_local_tagfile_${CONSTITUENT}) dirs
40!else
41$(cmt_local_${CONSTITUENT}_makefile) :: $(cmt_local_tagfile_${CONSTITUENT})
42!endif
43        $(echo) (constituents.nmake) Building ${CONSTITUENT}.nmake
44        @set include=$(include)
45        @set lib=$(lib)
46        @$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile -out=$@ ${CONSTITUENT}
47        $(echo) (constituents.nmake) ${CONSTITUENT}.nmake done
48
49${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile)
50        $(echo) (constituents.make) Creating ${CONSTITUENT}$(lock_suffix)
51        @$(lock_command) ${CONSTITUENT}$(lock_suffix)
52        $(echo) (constituents.nmake) Starting ${CONSTITUENT}
53        @set include=$(include)
54        @set lib=$(lib)
55        @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) QUICK=$(QUICK) build_strategy=keep_makefiles ${CONSTITUENT} tag=$(tag) \
56        || ($(unlock_command) ${CONSTITUENT}$(lock_suffix) & exit 1)
57        @$(unlock_command) ${CONSTITUENT}$(lock_suffix)
58        $(echo) (constituents.nmake) ${CONSTITUENT} done
59
60clean :: ${CONSTITUENT}clean
61
62${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) ##$(cmt_local_${CONSTITUENT}_makefile)
63        $(echo) (constituents.nmake) Starting ${CONSTITUENT}clean
64        @set include=$(include)
65        @set lib=$(lib)
66        @-if exist $(cmt_local_${CONSTITUENT}_makefile) $(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) QUICK=$(QUICK) build_strategy=keep_makefiles ${CONSTITUENT}clean tag=$(tag)
67        $(echo) (constituents.nmake) ${CONSTITUENT}clean done
68
69install :: ${CONSTITUENT}install
70
71${CONSTITUENT}install :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile)
72        $(echo) (constituents.nmake) Starting install ${CONSTITUENT}
73        @set include=$(include)
74        @set lib=$(lib)
75        @-$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) QUICK=$(QUICK) build_strategy=keep_makefiles install tag=$(tag)
76        $(echo) (constituents.nmake) install ${CONSTITUENT} done
77
78uninstall :: ${CONSTITUENT}uninstall
79
80${CONSTITUENT}uninstall :: $(cmt_local_${CONSTITUENT}_makefile)
81        $(echo) (constituents.nmake) Starting uninstall ${CONSTITUENT}"
82        @set include=$(include)
83        @set lib=$(lib)
84        @-$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) QUICK=$(QUICK) build_strategy=keep_makefiles uninstall tag=$(tag)
85        $(echo) (constituents.nmake) uninstall ${CONSTITUENT} done
86
87#-- end of constituent_lock ------
Note: See TracBrowser for help on using the repository browser.